server

package
v0.0.0-...-8ca80c0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServer

func CreateServer() *httprouter.Router

CreateServer creates a server router and initializes the endpoints

func GenerateID

func GenerateID(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

GenerateID generates a single ID endpoint

func GenerateIDs

func GenerateIDs(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

GenerateIDs generates a set of SSIDs provided a `count` and `generator ID`

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `json:"error"`
}

ErrorResponse servers error response

type SSIDResponse

type SSIDResponse struct {
	Config ssid.Config `json:"config"`
	SSIDs  []uint64    `json:"ssids"`
}

SSIDResponse servers reponse

Jump to

Keyboard shortcuts

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