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
Click to show internal directories.
Click to hide internal directories.