neoneo-go/pkg/network/relay_reason.go
Anna Shaleva 9f6fba5926 network: specify error message
For better user experience.
2021-02-16 14:11:42 +03:00

17 lines
363 B
Go

package network
//go:generate stringer -type=RelayReason -output=relay_reason_string.go
// RelayReason is the type which describes the different relay outcome.
type RelayReason uint8
// List of valid RelayReason.
const (
RelaySucceed RelayReason = iota
RelayAlreadyExists
RelayOutOfMemory
RelayUnableToVerify
RelayInvalid
RelayPolicyFail
RelayUnknown
)