server

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServeFunc

type ServeFunc = func(context.Context, *http.ServeMux, ServeOptions) error

type ServeFuncs

type ServeFuncs = []ServeFunc

type ServeOptions

type ServeOptions struct {
	Cache cache.Cache
}

type Server

type Server struct {
	Socket     string
	ServeFuncs ServeFuncs
}

func (*Server) AddFlags

func (s *Server) AddFlags(flags *pflag.FlagSet)

func (*Server) Register

func (s *Server) Register(f ServeFunc)

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Jump to

Keyboard shortcuts

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