server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2016 License: BSD-3-Clause Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address string `json:"address"`
	TLS     *TLS   `json:"tls"`
	Timeout int    `json:"timeout" default:"60"`
}

func (*Config) Clone

func (c *Config) Clone() *Config

func (*Config) Validate

func (c *Config) Validate() error

type Standard

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

func NewStandard

func NewStandard(logger log.Logger, api service.API, config *Config) (*Standard, error)

func (*Standard) Serve

func (s *Standard) Serve() error

type TLS

type TLS struct {
	CertificateFile string `json:"certificateFile"`
	KeyFile         string `json:"keyFile"`
}

Jump to

Keyboard shortcuts

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