model

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MulanPSL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoExp = ErrorBiz{Code: "10000", Msg: "NoExp"}
)

Functions

This section is empty.

Types

type ContextHandle

type ContextHandle struct {
	// contains filtered or unexported fields
}

func NewHandleContext

func NewHandleContext(cxt context.Context, requestParam map[string]interface{}) ContextHandle

func (*ContextHandle) Clone

func (sf *ContextHandle) Clone() ContextHandle

func (*ContextHandle) Deadline

func (sf *ContextHandle) Deadline() (deadline time.Time, ok bool)

func (*ContextHandle) Done

func (sf *ContextHandle) Done() <-chan struct{}

func (*ContextHandle) Err

func (sf *ContextHandle) Err() error

func (*ContextHandle) GetData

func (sf *ContextHandle) GetData() map[string]interface{}

func (*ContextHandle) GetInnerParam

func (sf *ContextHandle) GetInnerParam(key string) interface{}

func (*ContextHandle) GetReqId

func (sf *ContextHandle) GetReqId() string

func (*ContextHandle) GetRequest

func (sf *ContextHandle) GetRequest() map[string]interface{}

func (*ContextHandle) GetRequestValue

func (sf *ContextHandle) GetRequestValue(key string) interface{}

func (*ContextHandle) GetResponse

func (sf *ContextHandle) GetResponse() interface{}

func (*ContextHandle) Merge

func (sf *ContextHandle) Merge(source []ContextHandle)

func (*ContextHandle) SetInnerParam

func (sf *ContextHandle) SetInnerParam(key string, value interface{})

func (*ContextHandle) SetReqId

func (sf *ContextHandle) SetReqId(value string)

func (*ContextHandle) SetResponse

func (sf *ContextHandle) SetResponse(value interface{})

func (*ContextHandle) Value

func (sf *ContextHandle) Value(key interface{}) interface{}

type ErrorBiz

type ErrorBiz struct {
	Code string
	Msg  string
}

func (*ErrorBiz) Error

func (sf *ErrorBiz) Error() string

Jump to

Keyboard shortcuts

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