service: rename EpochRequest to EpochHeader and merge with MetaHeader

This commit is contained in:
Evgeniy Kulikov 2019-11-26 13:57:29 +03:00
parent b6de95b740
commit 20c10a2afd
No known key found for this signature in database
GPG key ID: BF6AEE0A2A699BF2
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