api

package
v0.0.0-...-841ec6f Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2018 License: MIT Imports: 7 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 struct {
	Servers dnsyo.ServerList
	// contains filtered or unexported fields
}

Server is responsible for management of the working ServerList and storage of the router

func NewAPIServer

func NewAPIServer(servers dnsyo.ServerList) (api Server)

NewAPIServer sets up the routes an produces a new Server instance with the router assigned.

func (*Server) Run

func (api *Server) Run(port string)

Run starts the Server on the given port. Port can should take the form :<port> or <ip>:<port>.

Jump to

Keyboard shortcuts

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