32dd0bb3f9
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>
8 lines
225 B
Go
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
|
|
)
|