server

package
v1.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2018 License: MIT Imports: 24 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(p Params) (http.Handler, error)

Types

type Params

type Params struct {
	BaseURL    string
	PathPrefix string
	APIKey     []byte
	Passphrase string
	Config     config.Config
	Version    string
}

type Server added in v1.8.0

type Server struct {
	Bind, Port, Passphrase string
	PathPrefix             string
	Hostname               string
	// contains filtered or unexported fields
}

Server is an http server which wraps the Handler

func New added in v1.8.0

func New(conf config.Config, version string) (*Server, error)

func (*Server) Listen added in v1.8.0

func (s *Server) Listen() error

Jump to

Keyboard shortcuts

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