Documentation ¶
Index ¶
- func RegisterWebPlugin(pluginName string, p WebPlugin)
- type FuncWebPluginInit
- type WebCenter
- func (w *WebCenter) GetHttpHandler() http.Handler
- func (w *WebCenter) Init()
- func (w *WebCenter) RegisterWebHandler(serviceName string, h interface{})
- func (w *WebCenter) RegisterWebPlugin(serviceName string, p WebPlugin)
- func (w *WebCenter) Run(addr string)
- func (w *WebCenter) SetHttpRoute(httpMethod string, party string, path string, service string)
- func (w *WebCenter) Start()
- func (w *WebCenter) Stop()
- type WebPlugin
- type WebRoute
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWebPlugin ¶
注册Web插件初始化 , 由WebCenter执行 Web插件的初始化设置
Types ¶
type WebCenter ¶
type WebCenter struct {
// contains filtered or unexported fields
}
func GetWebCenter ¶
func GetWebCenter() *WebCenter
func (*WebCenter) RegisterWebHandler ¶
注册服务对应的处理函数
func (*WebCenter) RegisterWebPlugin ¶
注册web插件 注册服务对应的处理函数
func (*WebCenter) SetHttpRoute ¶
设置Http路由, method 为static 表示静态目录
Click to show internal directories.
Click to hide internal directories.