server

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigSuccess added in v1.0.3

type ConfigSuccess struct {
	AlreadyInit bool
	Prefix      string
}

type DeviceListRevProxy added in v1.0.3

type DeviceListRevProxy struct {
	Devices map[string]*types.Device
	Prefix  string
}

type LetsEncryptServer added in v1.0.3

type LetsEncryptServer struct {
	Host    string
	CertDir string
}

func (*LetsEncryptServer) Start added in v1.0.3

func (srv *LetsEncryptServer) Start(alreadyInit, reverseProxy, telegram bool, proxyPrefix, command, port string)

StartLetsEncrypt spawn a https web server powered by letsencrypt certificates

type PlainServer added in v1.0.3

type PlainServer struct {
}

PlainServer represent the structure for http plain server

func (*PlainServer) Start added in v1.0.3

func (srv *PlainServer) Start(alreadyInit, reverseProxy, telegram bool, proxyPrefix, command, port string)

Start start the plain http server without any encryption

type Server added in v1.0.3

type Server interface {
	Start(alreadyInit, reverseProxy, telegram bool, proxyPrefix, command, port string)
}

Server is the interface which configuration process will init the service

type TLSServer added in v1.0.3

type TLSServer struct {
	TLSCert string
	TLSKey  string
}

TLSServer is the structure used in order to deploy a TLS secured server

func (*TLSServer) Start added in v1.0.3

func (srv *TLSServer) Start(alreadyInit, reverseProxy, telegram bool, proxyPrefix, command, port string)

Start deploy the normal tls endpoint secured server

Jump to

Keyboard shortcuts

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