rest

package
v0.0.0-...-8220f0d Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 22 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
	Checker     checker.Service
	CheckerOnly bool
	Key         signature.KeyPair
	MaxPayload  config.ByteSize
	Port        int
	SBAC        *sbac.ServiceSBAC
	SBACOnly    bool
	SelfID      uint64
	Store       kv.Service
	Top         *network.Topology
	PS          pubsub.Server
}

Config defines the values passed into the REST Service

type Service

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

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

func New

func New(cfg *Config) *Service

New returns a new REST API

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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