[#241] v2/session: Define keys of the well-known X-headers
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
aa55079b69
commit
f8018f9c3d
3 changed files with 16 additions and 0 deletions
BIN
v2/session/grpc/service.pb.go
generated
BIN
v2/session/grpc/service.pb.go
generated
Binary file not shown.
BIN
v2/session/grpc/types.pb.go
generated
BIN
v2/session/grpc/types.pb.go
generated
Binary file not shown.
16
v2/session/xheaders.go
Normal file
16
v2/session/xheaders.go
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
package session
|
||||||
|
|
||||||
|
// ReservedXHeaderPrefix is a prefix of keys to "well-known" X-headers.
|
||||||
|
const ReservedXHeaderPrefix = "__NEOFS__"
|
||||||
|
|
||||||
|
const (
|
||||||
|
// XHeaderNetmapEpoch is a key to the reserved X-header that specifies netmap epoch
|
||||||
|
// to use for object placement calculation. If set to '0' or not set, the current
|
||||||
|
// epoch only will be used.
|
||||||
|
XHeaderNetmapEpoch = ReservedXHeaderPrefix + "NETMAP_EPOCH"
|
||||||
|
|
||||||
|
// XHeaderNetmapLookupDepth is a key to the reserved X-header that limits
|
||||||
|
// how many past epochs back the node will can lookup. If set to '0' or not
|
||||||
|
// set, the current epoch only will be used.
|
||||||
|
XHeaderNetmapLookupDepth = ReservedXHeaderPrefix + "NETMAP_LOOKUP_DEPTH"
|
||||||
|
)
|
Loading…
Reference in a new issue