server

package
v0.0.0-...-9fdd194 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrServerStarted    = errors.New("server started")
	ErrServerNotStarted = errors.New("server not started")
)

Functions

This section is empty.

Types

type Option

type Option func(*Server)

func WithAddress

func WithAddress(address string) Option

type Server

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

func NewServer

func NewServer(routers routers.Routerser, options ...Option) (s *Server)

func (*Server) Start

func (s *Server) Start() (err error)

func (*Server) Stop

func (s *Server) Stop() (err error)

Jump to

Keyboard shortcuts

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