keytp

package
v0.0.0-...-d0e8f4b Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Get(string) (*models.AddressMetadata, error)
	Set(string, *models.AddressMetadata) error
}

Data is the expected interface for an HTTPKeyServer's database

type HTTPKeyServer

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

func New

func New(db Database) *HTTPKeyServer

New returns a HTTP-based keyserver that implements the REST api to handle keys

func (*HTTPKeyServer) ListenAndServe

func (s *HTTPKeyServer) ListenAndServe() error

ListenAndServe listens and serves requests

Directories

Path Synopsis
Package mock_keytp is a generated GoMock package.
Package mock_keytp is a generated GoMock package.

Jump to

Keyboard shortcuts

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