server

package
v0.0.0-...-42df60b Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	AddBackend(backend.Backend)
	CheckMessage([]byte) error
	DispatchRequest(byte) ([]byte, error)
	KeyRotate() ([]byte, error)
	Serve(net.Listener)
}

Server is the interface that handles the network protocol

func New

func New(keypath string, maxAge int) Server

New creates a new instance of a Server

Jump to

Keyboard shortcuts

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