server

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server instance

func NewServer

func NewServer(db store.DB, conf config.Config) (*Server, error)

NewServer creates new server instance

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(ListenAddr string) error

ListenAndServe starts server

func (*Server) Shutdown

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

Shutdown server and managed service

Jump to

Keyboard shortcuts

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