Merge pull request #20 from nspcc-dev/feature/remove-unnecessary

service: Renamed EpochRequest to EpochHeader and merged with MetaHeader
This commit is contained in:
Evgeniy Kulikov 2019-11-26 14:12:38 +03:00 committed by GitHub
commit 602c17778d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 10 deletions

View file

@ -1,7 +0,0 @@
package service
// EpochRequest interface gives possibility to get or set epoch in RPC Requests.
type EpochRequest interface {
GetEpoch() uint64
SetEpoch(v uint64)
}

View file

@ -19,14 +19,19 @@ type (
GetTTL() uint32 GetTTL() uint32
SetTTL(uint32) SetTTL(uint32)
// EpochRequest gives possibility to get or set epoch in RPC Requests. // EpochHeader gives possibility to get or set epoch in RPC Requests.
GetEpoch() uint64 EpochHeader
SetEpoch(uint64)
// VersionHeader allows get or set version of protocol request // VersionHeader allows get or set version of protocol request
VersionHeader VersionHeader
} }
// EpochHeader interface gives possibility to get or set epoch in RPC Requests.
EpochHeader interface {
GetEpoch() uint64
SetEpoch(v uint64)
}
// VersionHeader allows get or set version of protocol request // VersionHeader allows get or set version of protocol request
VersionHeader interface { VersionHeader interface {
GetVersion() uint32 GetVersion() uint32