http

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

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

Factory is the factory method for the api backend

Types

type HTTP

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

HTTP is an Api backend

func (*HTTP) Close

func (h *HTTP) Close() error

Close implements the Api interface

func (*HTTP) Metrics

func (h *HTTP) Metrics(ctx *fasthttp.RequestCtx) (interface{}, error)

Metrics returns several client metrics

func (*HTTP) PeersAdd

func (h *HTTP) PeersAdd(ctx *fasthttp.RequestCtx) (interface{}, error)

PeersAdd connects to a new peer synchronously

func (*HTTP) PeersList

func (h *HTTP) PeersList(ctx *fasthttp.RequestCtx) (interface{}, error)

PeersList returns a list of peers

func (*HTTP) PeersPeerID

func (h *HTTP) PeersPeerID(ctx *fasthttp.RequestCtx) (interface{}, error)

PeersPeerID returns specific info about one peer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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