server

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSkipConnection = errors.New("skip connection")
	ErrAcceptTimeout  = errors.New("accept timeout")
	ErrDataWriteRead  = errors.New("data write/read")
)

Functions

This section is empty.

Types

type Server

type Server struct {
	common.Params
	// contains filtered or unexported fields
}

Server is a server data.

func New

func New(params *common.Params) (*Server, error)

New creates a new server.

func (*Server) ListenAndServe added in v1.4.0

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

func (*Server) Start

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

Start starts the server.

Jump to

Keyboard shortcuts

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