Documentation ¶
Index ¶
- func GET(router Router, relativePath string, messageType IMessage)
- func Gin() *gin.Engine
- func Group(relativePath string) *gin.RouterGroup
- func HandleMessage(messageType IMessage) gin.HandlerFunc
- func InitHTTP(useGZip bool) (err error)
- func POST(router Router, relativePath string, messageType IMessage)
- func Run(addr string) (err error)
- type BaseMessage
- type BaseReply
- type IMessage
- type MessageProcess
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Group ¶
func Group(relativePath string) *gin.RouterGroup
Types ¶
type BaseMessage ¶
type BaseMessage struct {
// contains filtered or unexported fields
}
func (*BaseMessage) JSON ¶
func (m *BaseMessage) JSON(code int, data interface{})
func (*BaseMessage) SetContext ¶
func (m *BaseMessage) SetContext(ctx *gin.Context)
type MessageProcess ¶
type MessageProcess struct {
// contains filtered or unexported fields
}
MessageProcess 消息工厂
Click to show internal directories.
Click to hide internal directories.