Versions in this module Expand all Collapse all v0 v0.14.2 Sep 20, 2019 Changes in this version + const StatusBlockedAccount + const StatusBlockedHost + const StatusDuplicated + const StatusIncorrectCredential + const StatusInternalServerError + const StatusInvalidParameter + const StatusNotFound + const StatusOkay + const StatusPermissionDenied + const StatusServiceUnavailable + const StatusUnknownSession + func ResponseHandler(f func(ResponseWriter, *rest.Request)) func(rest.ResponseWriter, *rest.Request) + type Controller interface + Announce func(net.IP, net.HardwareAddr) error + RemoveFlows func() error + RemoveFlowsByMAC func(net.HardwareAddr) error + type Observer interface + IsMaster func() bool + type Response struct + Data interface{} + Message string + Status Status + type ResponseWriter interface + Header func() http.Header + Write func(Response) + WriteHeader func(int) + type Server struct + Controller Controller + Observer Observer + Port uint16 + TLS struct{ ... } + func (r *Server) Serve(routes ...*rest.Route) error + type Status int