Documentation ¶
Index ¶
- func Factory(logger hclog.Logger, m interface{}, config map[string]interface{}) (api.API, error)
- type HTTP
- func (h *HTTP) Close() error
- func (h *HTTP) Metrics(ctx *fasthttp.RequestCtx) (interface{}, error)
- func (h *HTTP) PeersAdd(ctx *fasthttp.RequestCtx) (interface{}, error)
- func (h *HTTP) PeersList(ctx *fasthttp.RequestCtx) (interface{}, error)
- func (h *HTTP) PeersPeerID(ctx *fasthttp.RequestCtx) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HTTP ¶
type HTTP struct {
// contains filtered or unexported fields
}
HTTP is an Api backend
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
Click to show internal directories.
Click to hide internal directories.