httpserver

package
v0.0.0-...-bfb5a2a Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStaticTokenAuthHandler

func NewStaticTokenAuthHandler(token string) staticTokenAuthHandler

Types

type Option

type Option func(*Server)

func WithAuthHandler

func WithAuthHandler(authHandler apiserver.MiddlewareFunc) Option

func WithListenAddr

func WithListenAddr(addr string) Option

type Server

type Server struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, pmss *pmss.Pmss, opts ...Option) *Server

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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