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 EchoApi
- type GroupApi
- type HandlerFunc
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 }
func (*Context) GetRequestBody ¶
============================================ Created by andy pangaribuan on 2021/05/18 Copyright andypangaribuan. All rights reserved. ============================================
func (*Context) GetRequestIp ¶
func (*Context) GetTraceId ¶
func (*Context) ResponseJson ¶
func (*Context) ResponseJsonBlob ¶
func (*Context) SetRequestUserId ¶
type EchoApi ¶
type EchoApi struct {
// contains filtered or unexported fields
}
func BuildEcho ¶
func BuildEcho(port int, logMiddleware clog.EchoMiddleware) *EchoApi
============================================ Created by andy pangaribuan on 2021/05/18 Copyright andypangaribuan. All rights reserved. ============================================
noinspection GoUnusedExportedFunction
func (*EchoApi) POST ¶
func (slf *EchoApi) POST(path string, handler HandlerFunc)
func (*EchoApi) POSTS ¶ added in v1.0.7
func (slf *EchoApi) POSTS(endpoint map[string]HandlerFunc)
type GroupApi ¶ added in v1.0.6
type GroupApi struct {
// contains filtered or unexported fields
}
func (*GroupApi) POST ¶ added in v1.0.6
func (slf *GroupApi) POST(path string, handler HandlerFunc)
func (*GroupApi) POSTS ¶ added in v1.0.7
func (slf *GroupApi) POSTS(endpoint map[string]HandlerFunc)
type HandlerFunc ¶
============================================ Created by andy pangaribuan on 2021/05/18 Copyright andypangaribuan. All rights reserved. ============================================
Click to show internal directories.
Click to hide internal directories.