budsvr

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler added in v0.2.6

type Handler struct {
	http.Handler
	// contains filtered or unexported fields
}

type Server

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

func New

func New(budln net.Listener, bus pubsub.Client, flag *framework.Flag, fsys fs.FS, log log.Log, vm js.VM) *Server

New development server

func (*Server) Address added in v0.2.6

func (s *Server) Address() string

Address returns the listener's address

func (*Server) Close added in v0.2.6

func (s *Server) Close() error

Shutdown the server gracefully

func (*Server) Listen added in v0.2.6

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

Listen for requests. If the context is cancelled, the server will begin a graceful shutdown

func (*Server) Start added in v0.2.6

func (s *Server) Start(ctx context.Context)

Start the server in the background

func (*Server) Wait added in v0.2.6

func (s *Server) Wait() error

Wait for the server to shutdown

Jump to

Keyboard shortcuts

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