service: rename EpochRequest to EpochHeader and merge with MetaHeader
This commit is contained in:
parent
b6de95b740
commit
20c10a2afd
2 changed files with 8 additions and 10 deletions
|
@ -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)
|
|
||||||
}
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue