Documentation
¶
Index ¶
- func RequestToProto(r *http.Request) (*hapi.Request, error)
- type HApiBase
- func (this *HApiBase) GetType() string
- func (this *HApiBase) Init(subclass app.IRPCModule, settings *conf.ModuleSettings, opts ...hapi.Option)
- func (this *HApiBase) OnDestroy()
- func (this *HApiBase) OnInit(settings *conf.ModuleSettings)
- func (this *HApiBase) Options() hapi.Options
- func (this *HApiBase) RouterGroup() *gin.RouterGroup
- func (this *HApiBase) Run(closeSig chan bool)
- func (this *HApiBase) Version() string
- type HttpHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HApiBase ¶
type HApiBase struct {
module.ModuleBase
// contains filtered or unexported fields
}
func (*HApiBase) Init ¶
func (this *HApiBase) Init(subclass app.IRPCModule, settings *conf.ModuleSettings, opts ...hapi.Option)
func (*HApiBase) OnInit ¶
func (this *HApiBase) OnInit(settings *conf.ModuleSettings)
func (*HApiBase) RouterGroup ¶
func (this *HApiBase) RouterGroup() *gin.RouterGroup
type HttpHandler ¶
HttpHandler 网关handler
func (*HttpHandler) ServeHTTP ¶
func (h *HttpHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
API handler is the default handler which takes api.Request and returns api.Response
Click to show internal directories.
Click to hide internal directories.