Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TPS = &templates{}
Functions ¶
func Httpserver ¶
func Httpserver(o HttpServerOption)
Types ¶
type HTTP ¶
type HTTP interface { Get(http.ResponseWriter, *http.Request) error Post(http.ResponseWriter, *http.Request) error Put(http.ResponseWriter, *http.Request) error Delete(http.ResponseWriter, *http.Request) error Patch(http.ResponseWriter, *http.Request) error Websocket(http.ResponseWriter, *http.Request) error }
type HttpServerOption ¶
type HttpServerOption struct { Mux *http.ServeMux NodeServer snode.NodeServer Subscribe snode.SubscribeServer Connections sstatistic.ConnectionsServer Config config.ConfigDaoServer Tag snode.TagServer Shunt *shunt.Shunt }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.