Documentation ¶
Index ¶
- func GetFrontMapping() map[string]bool
- func Httpserver(o HttpServerOption)
- func MarshalProtoAndWrite(w http.ResponseWriter, data proto.Message) error
- func UnmarshalProtoFromRequest(r *http.Request, data proto.Message) error
- func WhenNoError[T any](t T, err error) *wne[T]
- type Handler
- type HttpServerOption
- func (c *HttpServerOption) CloseConn(w http.ResponseWriter, r *http.Request) error
- func (cc *HttpServerOption) ConnWebsocket(w http.ResponseWriter, r *http.Request) error
- func (s *HttpServerOption) DeleteLink(w http.ResponseWriter, r *http.Request) error
- func (n *HttpServerOption) DeleteNode(w http.ResponseWriter, r *http.Request) error
- func (t *HttpServerOption) DeleteTag(w http.ResponseWriter, r *http.Request) error
- func (cc *HttpServerOption) GetConfig(w http.ResponseWriter, r *http.Request) error
- func (l *HttpServerOption) GetLatency(w http.ResponseWriter, r *http.Request) error
- func (s *HttpServerOption) GetLinkList(w http.ResponseWriter, r *http.Request) error
- func (nn *HttpServerOption) GetNode(w http.ResponseWriter, r *http.Request) error
- func (t *HttpServerOption) Manager(w http.ResponseWriter, r *http.Request) error
- func (z *HttpServerOption) NodeNow(w http.ResponseWriter, r *http.Request) error
- func (s *HttpServerOption) PatchLink(w http.ResponseWriter, r *http.Request) error
- func (o *HttpServerOption) Routers() Handler
- func (n *HttpServerOption) SaveBypass(w http.ResponseWriter, r *http.Request) error
- func (c *HttpServerOption) SaveConfig(w http.ResponseWriter, r *http.Request) error
- func (s *HttpServerOption) SaveLink(w http.ResponseWriter, r *http.Request) error
- func (n *HttpServerOption) SaveNode(w http.ResponseWriter, r *http.Request) error
- func (t *HttpServerOption) SaveTag(w http.ResponseWriter, r *http.Request) error
- func (n *HttpServerOption) UseNode(w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFrontMapping ¶
func Httpserver ¶
func Httpserver(o HttpServerOption)
func MarshalProtoAndWrite ¶
func MarshalProtoAndWrite(w http.ResponseWriter, data proto.Message) error
func WhenNoError ¶
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) CloseConn ¶
func (c *HttpServerOption) CloseConn(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) ConnWebsocket ¶
func (cc *HttpServerOption) ConnWebsocket(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) DeleteLink ¶
func (s *HttpServerOption) DeleteLink(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) DeleteNode ¶
func (n *HttpServerOption) DeleteNode(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) DeleteTag ¶
func (t *HttpServerOption) DeleteTag(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) GetConfig ¶
func (cc *HttpServerOption) GetConfig(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) GetLatency ¶
func (l *HttpServerOption) GetLatency(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) GetLinkList ¶
func (s *HttpServerOption) GetLinkList(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) GetNode ¶
func (nn *HttpServerOption) GetNode(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) Manager ¶
func (t *HttpServerOption) Manager(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) NodeNow ¶
func (z *HttpServerOption) NodeNow(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) PatchLink ¶
func (s *HttpServerOption) PatchLink(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) Routers ¶
func (o *HttpServerOption) Routers() Handler
func (*HttpServerOption) SaveBypass ¶
func (n *HttpServerOption) SaveBypass(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) SaveConfig ¶
func (c *HttpServerOption) SaveConfig(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) SaveLink ¶
func (s *HttpServerOption) SaveLink(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) SaveNode ¶
func (n *HttpServerOption) SaveNode(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) SaveTag ¶
func (t *HttpServerOption) SaveTag(w http.ResponseWriter, r *http.Request) error
func (*HttpServerOption) UseNode ¶
func (n *HttpServerOption) UseNode(w http.ResponseWriter, r *http.Request) error
Click to show internal directories.
Click to hide internal directories.