server

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 15 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 {
	Config      *ServerConfig
	Controllers *controllers.Controllers
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *ServerConfig,
	ctrls *controllers.Controllers,
	graceful *graceful_service.GracefulService) (newServer *Server)

func (*Server) Shutdown

func (s *Server) Shutdown()

func (*Server) Start

func (s *Server) Start()

type ServerConfig

type ServerConfig struct {
	Host           string
	Port           int
	RunMode        config.RunMode
	MemStorySecret string
	SessionStory   string
}

func NewServerConfig

func NewServerConfig(cfg *config.AppConfig) *ServerConfig

type ServerLogger

type ServerLogger struct {
	Logger *logging.Logger
}

func (ServerLogger) Write

func (s ServerLogger) Write(b []byte) (i int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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