forked from TrueCloudLab/frostfs-api-go
[#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>
This commit is contained in:
parent
959d1c8c38
commit
32dd0bb3f9
4 changed files with 27 additions and 4 deletions
|
@ -57,6 +57,8 @@ const (
|
|||
const (
|
||||
// Internal is a local Code value for INTERNAL failure status.
|
||||
Internal Code = iota
|
||||
// WrongMagicNumber is a local Code value for WRONG_MAGIC_NUMBER failure status.
|
||||
WrongMagicNumber
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue