Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SError ¶
type SError interface { error fmt.Stringer GetMessage() string WithMessageKey(key string) SError GetMessageKey() string WithMessage(msg string) SError GetStatusCode() StatusCode WithStatusCode(statusCode StatusCode) SError GetTrace() string WithTrace(trace string) SError GetPayload() []byte WithPayload(payload []byte) SError GetParams() []interface{} WithParams(params []interface{}) SError GetDevTrace() string StringDetail() string StringDetailSimple() string ReloadDevTrace(skip int) SError Clone() SError }
type StatusCode ¶
type StatusCode int
const (
ScOk StatusCode = 0
)
func NewStatusCode ¶
func NewStatusCode(status int) StatusCode
func (StatusCode) Failed ¶
func (s StatusCode) Failed() bool
func (StatusCode) Success ¶
func (s StatusCode) Success() bool
func (StatusCode) ToInt32 ¶
func (s StatusCode) ToInt32() int32
Click to show internal directories.
Click to hide internal directories.