Versions in this module Expand all Collapse all v2 v2.16.0 Sep 14, 2023 v2.15.0 Apr 11, 2023 Changes in this version + const DetailIDCorrectMagic + func CodeToGRPC(v Code) uint32 + func GlobalizeCommonFail(c *Code) + func GlobalizeSuccess(c *Code) + func IsCommonFail(c Code) bool + func IsInSection(code Code, sec uint32) bool + func IsSuccess(c Code) bool + func LocalizeCommonFail(c *Code) + func LocalizeIfInSection(c *Code, sec uint32) bool + func LocalizeSuccess(c *Code) + func SetStatusDetails(dst *Status, ds []Detail) + type Code uint32 + const Internal + const NodeUnderMaintenance + const OK + const SignatureVerificationFail + const WrongMagicNumber + func CodeFromGRPC(v uint32) Code + func (x *Code) GlobalizeSection(sec uint32) + func (x *Code) LocalizeSection(sec uint32) + func (x Code) EqualNumber(num uint32) bool + func (x Code) InSections(i, j uint32) bool + type Detail struct + func (x *Detail) FromGRPCMessage(m grpc.Message) error + func (x *Detail) ID() uint32 + func (x *Detail) SetID(id uint32) + func (x *Detail) SetValue(val []byte) + func (x *Detail) StableMarshal(buf []byte) []byte + func (x *Detail) StableSize() (size int) + func (x *Detail) ToGRPCMessage() grpc.Message + func (x *Detail) Unmarshal(data []byte) error + func (x *Detail) Value() []byte + type Status struct + func (x *Status) AppendDetails(ds ...Detail) + func (x *Status) Code() Code + func (x *Status) FromGRPCMessage(m grpc.Message) error + func (x *Status) IterateDetails(f func(*Detail) bool) + func (x *Status) Message() string + func (x *Status) NumberOfDetails() int + func (x *Status) ResetDetails() + func (x *Status) SetCode(code Code) + func (x *Status) SetMessage(msg string) + func (x *Status) StableMarshal(buf []byte) []byte + func (x *Status) StableSize() (size int) + func (x *Status) ToGRPCMessage() grpc.Message + func (x *Status) Unmarshal(data []byte) error