rest

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr    string
	Metrics metrics.Service
	Port    int
	PKI     pki.Service
}

Config defines the values passed into the REST Service

type Node

type Node struct {
	PubSigningKey   string
	PubTransportKey string
	Up              bool
}

Node is a mixnode or coconode

type Server

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

Server gives us a place to store values for our REST API

func New

func New(cfg *Config) *Server

New returns a new REST API server

func (*Server) Run

func (srv *Server) Run()

Run the REST server.

Jump to

Keyboard shortcuts

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