server

package
v0.0.0-...-449df0f Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MaxUnzippedSize int64         `config:"max_unzipped_size"`
	MaxHeaderBytes  int           `config:"max_header_bytes"`
	ReadTimeout     time.Duration `config:"read_timeout"`
	WriteTimeout    time.Duration `config:"write_timeout"`
	SecretToken     string        `config:"secret_token"`
	SSL             *SSLConfig    `config:"ssl"`
}

type SSLConfig

type SSLConfig struct {
	Enabled    *bool  `config:"enabled"`
	PrivateKey string `config:"key"`
	Cert       string `config:"certificate"`
}

func (*SSLConfig) IsEnabled

func (c *SSLConfig) IsEnabled() bool

type Server

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

func New

func New(cfg *common.Config) (*Server, error)

func (*Server) Start

func (s *Server) Start(successCallback func([]beat.Event), host string)

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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