Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResponseWrapper ¶
type ResponseWrapper struct {
Code errorx.Code `json:"code"`
Message string `json:"message"`
Resp interface{} `json:"resp,omitempty"`
RawMessage string `json:"-" yaml:"-"`
Ctx context.Context `json:"-" yaml:"-"`
}
func (*ResponseWrapper) Apply ¶
func (wr *ResponseWrapper) Apply(err error) bool
func (*ResponseWrapper) ApplyCodeAndError ¶
func (wr *ResponseWrapper) ApplyCodeAndError(code errorx.Code, msg string) bool
func (*ResponseWrapper) ApplyCodeError ¶
func (wr *ResponseWrapper) ApplyCodeError(ce errorx.CodeError) bool
func (*ResponseWrapper) Clone ¶
func (wr *ResponseWrapper) Clone(wro ResponseWrapper) bool
Click to show internal directories.
Click to hide internal directories.