Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseStatus ¶
type BaseStatus struct {
// contains filtered or unexported fields
}
func NewBaseStatus ¶
func NewBaseStatus(kind Kind, code Code, message string) *BaseStatus
func NewErrorStatus ¶
func NewErrorStatus(err error) *BaseStatus
func NewErrorStatusWithCode ¶
func NewErrorStatusWithCode(code Code, err error) *BaseStatus
func NewErrorStatusWithMsg ¶
func NewErrorStatusWithMsg(code Code, msg string) *BaseStatus
func (*BaseStatus) Code ¶
func (b *BaseStatus) Code() Code
func (*BaseStatus) Kind ¶
func (b *BaseStatus) Kind() Kind
func (*BaseStatus) Message ¶
func (b *BaseStatus) Message() string
func (*BaseStatus) String ¶
func (b *BaseStatus) String() string
type Code ¶
type Code string
const ( Unknown Code = "UNKNOWN" Unimplemented Code = "UNIMPLEMENTED" Canceled Code = "CANCELED" InvalidArgument Code = "INVALID_ARGUMENT" NotFound Code = "NOTFOUND" AlreadyExists Code = "ALREADY_EXISTS" PermissionDenied Code = "PERMISSION_DENIED" Internal Code = "INTERNAL" Unauthenticated Code = "UNAUTHENTICATED" IllegalManifest Code = "ILLEGAL_MANIFEST" )
Click to show internal directories.
Click to hide internal directories.