frostfs-api-go-pogpp/status/details.go
Leonard Lyubich 32dd0bb3f9 [#369] status: Support WRONG_MAGIC_NUMBER code and detail
Define constant for `WrongMagicNumber` local code. Define constant
`DetailIDCorrect` for correct magic detail. Add `ResetDetails`
and `AppendDetails` method pair. Replace `SetDetails` method with new
`SetStatusDetails` function which can be implemented using new methods.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2022-01-27 16:53:16 +03:00

8 lines
225 B
Go

package status
// details for WrongMagicNumber code.
const (
// DetailIDCorrectMagic is an identifier of details with correct network magic
// which can be attached to WrongMagicNumber code.
DetailIDCorrectMagic = iota
)