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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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