server

package
v0.0.0-...-1814500 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTP struct {
		Address         string        `conf:"address"`
		ReadTimeout     time.Duration `conf:"read_timeout"`
		WriteTimeout    time.Duration `conf:"write_timeout"`
		ShutdownTimeout time.Duration `conf:"shutdown_timeout"`
	} `conf:"http"`
}

type Server

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

func New

func New(ctr controller, cfg Config, log logger.Logger) (Server, error)

func (Server) ListenAndServe

func (svr Server) ListenAndServe() <-chan struct{}

func (Server) Shutdown

func (svr Server) Shutdown()

Jump to

Keyboard shortcuts

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