server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetRoutes

func SetRoutes(e *gin.Engine, ph *handlers.PWDhandler)

SetRoutes sets all routing for the gin's engine.

Types

type Server

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

Server defines the server settings.

func New

func New() *Server

New is the server's constructor.

func (*Server) Set

func (s *Server) Set(cfg *config.Config) error

Set prepares and sets the server to run.

func (*Server) Start

func (s *Server) Start() error

Start starts the server.

func (*Server) Stop

func (s *Server) Stop() error

Stop closes all connections and dials.

Jump to

Keyboard shortcuts

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