Documentation ¶ Index ¶ type Server func NewServer(store *store.Store, authorization string) (server *Server, err error) func (server *Server) Serve(l net.Listener) error func (server *Server) ServeTLS(l net.Listener, certFile string, keyFile string) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(store *store.Store, authorization string) (server *Server, err error) NewServer set up HTTP API server instance If authorization is passed, requires privileged operation callers to present Authorization header with this content. func (*Server) Serve ¶ func (server *Server) Serve(l net.Listener) error func (*Server) ServeTLS ¶ added in v0.3.2 func (server *Server) ServeTLS(l net.Listener, certFile string, keyFile string) error Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.