Documentation ¶
Index ¶
- Variables
- type ContextHandle
- func (sf *ContextHandle) Clone() ContextHandle
- func (sf *ContextHandle) Deadline() (deadline time.Time, ok bool)
- func (sf *ContextHandle) Done() <-chan struct{}
- func (sf *ContextHandle) Err() error
- func (sf *ContextHandle) GetData() map[string]interface{}
- func (sf *ContextHandle) GetInnerParam(key string) interface{}
- func (sf *ContextHandle) GetReqId() string
- func (sf *ContextHandle) GetRequest() map[string]interface{}
- func (sf *ContextHandle) GetRequestValue(key string) interface{}
- func (sf *ContextHandle) GetResponse() interface{}
- func (sf *ContextHandle) Merge(source []ContextHandle)
- func (sf *ContextHandle) SetInnerParam(key string, value interface{})
- func (sf *ContextHandle) SetReqId(value string)
- func (sf *ContextHandle) SetResponse(value interface{})
- func (sf *ContextHandle) Value(key interface{}) interface{}
- type ErrorBiz
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) 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{}
Click to show internal directories.
Click to hide internal directories.