httpserver

package
v0.0.0-...-a2eb7de Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadPublicKeyAlgorithm       = errors.New("Only ECDSA keys are supported.")
	ErrInvalidCSRInternalSignature = errors.New("Invalid CSR internal signature")
	ErrMultipleCerts               = errors.New("More than one certificate where one was expected")
	Day                            = time.Hour * 24
	Year                           = Day * 365
)

Functions

This section is empty.

Types

type HttpServer

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

func New

func New(apiKey []byte, privateKeyPath, publicCertPath string, dataServer *ds.DataServer) (*HttpServer, error)

func (*HttpServer) Run

func (self *HttpServer) Run(listenPort int, certFile string, keyFile string)

Jump to

Keyboard shortcuts

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