api

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

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

Go to latest
Published: Aug 14, 2020 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAddrFromConfig

func ReadAddrFromConfig(defaultAddr string, defaultPort int, config map[string]interface{}) (*net.TCPAddr, error)

ReadAddrFromConfig reads a tcp address from a config map

Types

type API

type API interface {
	Close() error
}

An API backend exposes data to external interfaces

type Factory

type Factory func(logger hclog.Logger, minimal interface{}, config map[string]interface{}) (API, error)

Factory is the factory function to create an api backend

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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