server

package
v0.0.0-...-7ab1c37 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorPackageTooLarge = errors.New("package too large")
View Source
var ErrorProtocol = errors.New("protocol error")

Functions

This section is empty.

Types

type Config

type Config struct {
	TcpAddr      string                 `mapstructure:"tcp_addr"`
	TcpTLSAddr   string                 `mapstructure:"tcp_tls_addr"`
	HttpAddr     string                 `mapstructure:"http_addr"`
	HttpsAddr    string                 `mapstructure:"https_addr"`
	AdminAddr    string                 `mapstructure:"admin_addr"`
	ConnCheckUrl string                 `mapstructure:"conn_check_url"`
	KeepAlive    time.Duration          `mapstructure:"keepalive"`
	Store        map[string]interface{} `mapstructure:"store"`
}

type Conn

type Conn struct {
	Conn    net.Conn
	StartOn time.Time
	Pkg     *connectPkg
}

type Server

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

func New

func New(cfg *Config) *Server

func (*Server) Hello

func (s *Server) Hello(c echo.Context) error

func (*Server) Start

func (s *Server) Start(closeCh <-chan os.Signal) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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