server

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortListner added in v0.6.1

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

func (*PortListner) Lister added in v0.6.1

func (ps *PortListner) Lister(ctx context.Context) error

func (*PortListner) Shutdown added in v0.6.1

func (ps *PortListner) Shutdown(ctx context.Context) error

type Server

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

func New added in v0.6.1

func New() *Server

func (*Server) Close added in v0.6.1

func (s *Server) Close() error

func (*Server) Restart added in v0.6.1

func (s *Server) Restart(ctx context.Context, targets []Target) error

func (*Server) Shutdown added in v0.6.1

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

func (*Server) Start added in v0.6.1

func (s *Server) Start(ctx context.Context, targets []Target)

func (*Server) Wait added in v0.6.1

func (s *Server) Wait()

type Target added in v0.6.1

type Target struct {
	Address   string
	TLSConfgi *tls.Config
	Handler   contracts.Handler
}

Jump to

Keyboard shortcuts

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