2021-01-11 15:14:07 +00:00
|
|
|
package session
|
|
|
|
|
|
|
|
// ReservedXHeaderPrefix is a prefix of keys to "well-known" X-headers.
|
2023-03-15 09:50:43 +00:00
|
|
|
const ReservedXHeaderPrefix = "__SYSTEM__"
|
2021-01-11 15:14:07 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
)
|
2023-03-06 12:24:58 +00:00
|
|
|
|
|
|
|
// ReservedXHeaderPrefixNeoFS is a prefix of keys to "well-known" X-headers.
|
2023-03-15 09:50:43 +00:00
|
|
|
// Deprecated: use ReservedXHeaderPrefix
|
2023-03-06 12:24:58 +00:00
|
|
|
const ReservedXHeaderPrefixNeoFS = "__NEOFS__"
|
|
|
|
|
|
|
|
const (
|
|
|
|
// XHeaderNetmapEpochNeoFS 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.
|
2023-03-15 09:50:43 +00:00
|
|
|
// Deprecated: use XHeaderNetmapEpoch
|
2023-03-06 12:24:58 +00:00
|
|
|
XHeaderNetmapEpochNeoFS = ReservedXHeaderPrefixNeoFS + "NETMAP_EPOCH"
|
|
|
|
|
|
|
|
// XHeaderNetmapLookupDepthNeoFS 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.
|
2023-03-15 09:50:43 +00:00
|
|
|
// Deprecated: use XHeaderNetmapLookupDepth
|
2023-03-06 12:24:58 +00:00
|
|
|
XHeaderNetmapLookupDepthNeoFS = ReservedXHeaderPrefixNeoFS + "NETMAP_LOOKUP_DEPTH"
|
|
|
|
)
|