server

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.4.0

type Config struct {
	Host    string
	Port    int
	RunMode config.RunMode
}

Config ...

func NewConfig added in v0.4.0

func NewConfig(cfg *config.AppConfig) *Config

NewConfig ...

func (Config) String added in v0.4.0

func (c Config) String() string

type Server

type Server struct {
	Config        *Config
	ControllersV1 *controllers.ControllersV1
	// contains filtered or unexported fields
}

Server ...

func NewServer

func NewServer(cfg *Config,
	ctrls *controllers.ControllersV1,
	graceful *graceful_service.GracefulService,
	accessFilter *rbac.AccessFilter,
	streamService *stream.StreamService,
	core *core.Core) (newServer *Server)

NewServer ...

func (*Server) GetEngine added in v0.0.11

func (s *Server) GetEngine() *gin.Engine

GetEngine ...

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown ...

func (*Server) Start

func (s *Server) Start()

Start ...

type ServerLogger

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

ServerLogger ...

func NewLogger added in v0.1.3

func NewLogger() *ServerLogger

NewLogger ...

func (ServerLogger) Write

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

Write ...

Directories

Path Synopsis
v1
Smart home This documentation describes APIs found under https://github.com/e154/smart-home BasePath: /api/v1 Version: 1.0.0 License: GPLv3 https://raw.githubusercontent.com/e154/smart-home/master/LICENSE Contact: Alex Filippov <support@e154.ru> https://e154.github.io/smart-home/ Consumes: - application/json Produces: - application/json Security: - BasicAuth - ApiKeyAuth SecurityDefinitions: ApiKeyAuth: type: apiKey name: Authorization in: header BasicAuth: type: basic swagger:meta
Smart home This documentation describes APIs found under https://github.com/e154/smart-home BasePath: /api/v1 Version: 1.0.0 License: GPLv3 https://raw.githubusercontent.com/e154/smart-home/master/LICENSE Contact: Alex Filippov <support@e154.ru> https://e154.github.io/smart-home/ Consumes: - application/json Produces: - application/json Security: - BasicAuth - ApiKeyAuth SecurityDefinitions: ApiKeyAuth: type: apiKey name: Authorization in: header BasicAuth: type: basic swagger:meta
v2
Smart home This documentation describes APIs found under https://github.com/e154/smart-home BasePath: /api/v2 Version: 2.0.0 License: GPLv3 https://raw.githubusercontent.com/e154/smart-home/master/LICENSE Contact: Alex Filippov <support@e154.ru> https://e154.github.io/smart-home/ Consumes: - application/json Produces: - application/json Security: - BasicAuth - ApiKeyAuth SecurityDefinitions: ApiKeyAuth: type: apiKey name: Authorization in: header BasicAuth: type: basic swagger:meta
Smart home This documentation describes APIs found under https://github.com/e154/smart-home BasePath: /api/v2 Version: 2.0.0 License: GPLv3 https://raw.githubusercontent.com/e154/smart-home/master/LICENSE Contact: Alex Filippov <support@e154.ru> https://e154.github.io/smart-home/ Consumes: - application/json Produces: - application/json Security: - BasicAuth - ApiKeyAuth SecurityDefinitions: ApiKeyAuth: type: apiKey name: Authorization in: header BasicAuth: type: basic swagger:meta

Jump to

Keyboard shortcuts

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