server

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: MIT Imports: 10 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 is the main service.

func NewServer

func NewServer(conf *config.Config) *Server

NewServer will setup a new server with specific config.

func (*Server) Run

func (s *Server) Run() error

Run up the server

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown the server gracefully

Jump to

Keyboard shortcuts

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