server

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Overview

Smart home gate

This documentation describes APIs found under https://github.com/e154/smart-home-gate

BasePath: /
Version: 1.0.0
License: MIT https://raw.githubusercontent.com/e154/smart-home-gate/master/LICENSE
Contact: Alex Filippov <support@e154.ru> https://e154.github.io/smart-home-gate/

Consumes:
- application/json

Produces:
- application/json

Security:
- ApiKeyAuth
- ServerAuthorization

SecurityDefinitions:
ApiKeyAuth:
     type: apiKey
     name: Authorization
     in: header
ServerAuthorization:
     type: apiKey
     name: ServerAuthorization
     in: header

swagger:meta

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,
	controllers *controllers.Controllers,
	streamService *stream.StreamService) (newServer *Server)

func (*Server) GetEngine

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

func (*Server) Shutdown

func (s *Server) Shutdown()

func (*Server) Start

func (s *Server) Start()

type ServerConfig

type ServerConfig struct {
	Host string
	Port int
}

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