Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HttpGateBase ¶
type HttpGateBase struct {
module.ModuleBase
// contains filtered or unexported fields
}
func (*HttpGateBase) GetType ¶
func (this *HttpGateBase) GetType() string
func (*HttpGateBase) Init ¶
func (this *HttpGateBase) Init(subclass app.IRPCModule, settings *conf.ModuleSettings, opts ...httpgate.Option)
func (*HttpGateBase) OnDestroy ¶
func (this *HttpGateBase) OnDestroy()
func (*HttpGateBase) Run ¶
func (this *HttpGateBase) Run(closeSig chan bool)
func (*HttpGateBase) Version ¶
func (this *HttpGateBase) Version() string
type HttpHandler ¶
HttpHandler 网关handler
func (*HttpHandler) ServeHTTP ¶
func (a *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.