Documentation ¶
Index ¶
- type Context
- func (slf *Context) BindPars(destination interface{}) error
- func (slf *Context) GetRequestBody() (string, error)
- func (slf *Context) GetRequestIp() (reqIp string)
- func (slf *Context) GetTraceId() string
- func (slf *Context) ResponseJson(code int, response interface{}) error
- func (slf *Context) ResponseJsonBlob(code int, response []byte) error
- func (slf *Context) ResponseStr(code int, response string) error
- func (slf *Context) SetRequestUserId(uid string)
- type HandlerFunc
- type SMEchoApi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Log smLog // contains filtered or unexported fields }
============================================ Created by andy pangaribuan on 2020/04/01 Copyright BoltIdea. All rights reserved. ============================================
func (*Context) GetRequestBody ¶
func (*Context) GetRequestIp ¶
func (*Context) GetTraceId ¶
func (*Context) ResponseJson ¶
func (*Context) ResponseJsonBlob ¶
func (*Context) SetRequestUserId ¶
type HandlerFunc ¶
Click to show internal directories.
Click to hide internal directories.