server

package
v0.0.0-...-1cea508 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: GPL-3.0 Imports: 12 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 handles the runtime of the application.

func NewServer

func NewServer(cfg models.Config, logger zerolog.Logger) *Server

NewServer creates a new server instance with dependencies.

func (*Server) Shutdown

func (s *Server) Shutdown(fromErr bool)

Shutdown signals the shutdown process across all processes in the server.

func (*Server) Start

func (s *Server) Start()

Start invokes all asynchronous server processes.

Jump to

Keyboard shortcuts

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