Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrpcToHttp ¶
func Httpserver ¶
func Httpserver(o HttpServerOption)
Types ¶
type HttpServerOption ¶
type HttpServerOption struct {
Mux *http.ServeMux
Shunt *shunt.Shunt
NodeServer gn.NodeServer
Subscribe gn.SubscribeServer
Tag gn.TagServer
Connections gs.ConnectionsServer
Config gc.ConfigServiceServer
Tools gt.ToolsServer
}
func (*HttpServerOption) ConnWebsocket ¶
func (cc *HttpServerOption) ConnWebsocket(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) Routers ¶
func (o *HttpServerOption) Routers() Handler
Click to show internal directories.
Click to hide internal directories.