api

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 22 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(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

func (server *Server) ServeTLS(l net.Listener, certFile string, keyFile string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL