neoneo-go/pkg/network/relay_reason.go

18 lines
363 B
Go
Raw Normal View History

package network
//go:generate stringer -type=RelayReason -output=relay_reason_string.go
2019-10-22 14:56:03 +00:00
// 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
)