pjson

package
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL