Documentation ¶
Index ¶
- Variables
- func Aborted(format string, args ...any) error
- func AlreadyExists(format string, args ...any) error
- func DeadlineExceeded(format string, args ...any) error
- func Errorf(c WSErrorCode, format string, a ...interface{}) *api.ErrorEvent
- func Internal(format string, args ...any) error
- func InternalWS(format string, args ...any) *api.ErrorEvent
- func InvalidArgument(format string, args ...any) error
- func MethodNotAllowed(format string, args ...any) error
- func NotFound(format string, args ...any) error
- func PermissionDenied(format string, args ...any) error
- func ResourceExhausted(format string, args ...any) *api.TigrisError
- func Unauthenticated(format string, args ...any) error
- func Unavailable(format string, args ...any) error
- func Unimplemented(format string, args ...any) error
- func Unknown(format string, args ...any) error
- type WSErrorCode
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AlreadyExists ¶
AlreadyExists construct conflict error (HTTP: 409).
func DeadlineExceeded ¶
DeadlineExceeded constructs timeout error (HTTP: 504).
func Errorf ¶
func Errorf(c WSErrorCode, format string, a ...interface{}) *api.ErrorEvent
func InternalWS ¶
func InternalWS(format string, args ...any) *api.ErrorEvent
func InvalidArgument ¶
InvalidArgument constructs bad request error (HTTP: 400).
func MethodNotAllowed ¶
MethodNotAllowed constructs method not allowed error (HTTP: 405).
func PermissionDenied ¶
PermissionDenied constructs forbidden error (HTTP: 403).
func ResourceExhausted ¶
func ResourceExhausted(format string, args ...any) *api.TigrisError
ResourceExhausted constructs too many requests error (HTTP: 429).
func Unauthenticated ¶
Unauthenticated construct unauthorized error (HTTP: 401).
func Unavailable ¶
Unavailable constructs service unavailable error (HTTP: 503).
func Unimplemented ¶
Unimplemented constructs not implemented error (HTTP: 501).
Types ¶
type WSErrorCode ¶
type WSErrorCode int32
const ( CodeOK = 0 CloseNormalClosure WSErrorCode = 1000 CloseGoingAway WSErrorCode = 1001 CloseProtocolError WSErrorCode = 1002 CloseUnsupportedData WSErrorCode = 1003 CloseNoStatusReceived WSErrorCode = 1005 CloseAbnormalClosure WSErrorCode = 1006 CloseInvalidFramePayloadData WSErrorCode = 1007 ClosePolicyViolation WSErrorCode = 1008 CloseMessageTooBig WSErrorCode = 1009 CloseMandatoryExtension WSErrorCode = 1010 CloseInternalServerErr WSErrorCode = 1011 CloseServiceRestart WSErrorCode = 1012 CloseTryAgainLater WSErrorCode = 1013 CloseTLSHandshake WSErrorCode = 1015 )
Click to show internal directories.
Click to hide internal directories.