Commit graph

7 commits

Author SHA1 Message Date
Leonard Lyubich
b785eb710a service: transfer TTL code to a separate file 2020-05-04 13:38:27 +03:00
Leonard Lyubich
fc177c4ce3 service: change constant errors
This commit:

  * moves defined errors to a separate file;

  * renames ErrEmptyToken to ErrNilToken;

  * merges ErrZeroTTL and ErrIncorrectTTL into single ErrInvalidTTL.
2020-05-04 13:06:36 +03:00
Leonard Lyubich
09f8ee52d0 service: implement Raw field setter on RequestMetaHeader struct
After recent changes Raw field is presented in RequestMetaHeader.
There is a need to provide an interface of field getter/setter.

This commit:

  * defines RawHeader interface of raw value container;

  * embeds RawHeader into MetaHeader interface;

  * implements Raw field setter on RequestMetaHeader.
2020-04-28 17:02:47 +03:00
Leonard Lyubich
a21e42ea4f Implement Epoch and Version setters on ResponseMetaHeader 2020-02-14 12:17:48 +03:00
Evgeniy Kulikov
a893e389b0
service: test coverage for wrapped status errors 2019-11-26 14:09:23 +03:00
Evgeniy Kulikov
5c031fc6b2
service: ProcessRequestTTL shouldn't change status errors 2019-11-25 15:47:57 +03:00
Evgeniy Kulikov
24e5497b1d
Update develop branch 2019-11-21 13:10:57 +03:00