Merge pull request #20 from nspcc-dev/feature/remove-unnecessary
service: Renamed EpochRequest to EpochHeader and merged with MetaHeader
This commit is contained in:
commit
602c17778d
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