api

package
Version: v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL