Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdminServer ¶
type AdminServer interface { Start() error Stop() }
AdminServer is an interface for the admin server.
func NewAdminServerImpl ¶
func NewAdminServerImpl(APIPort int, handlers map[byte]func(req []byte) ([]byte, error)) AdminServer
NewAdminServerImpl creates a new admin server.
type AdminServerImpl ¶
type AdminServerImpl struct {
// contains filtered or unexported fields
}
AdminServerImpl implements AdminServer.
func (*AdminServerImpl) ServeHTTP ¶
func (s *AdminServerImpl) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP handles the api calls. It takes a response writer, the http request as arguments.
Click to show internal directories.
Click to hide internal directories.