http

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

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

HttpClient is an http over the standard http interface

func NewHttpClient

func NewHttpClient(addr string) *HttpClient

NewHttpClient creates a new http client

func (*HttpClient) NodeIdentity

func (h *HttpClient) NodeIdentity() (*Identity, error)

NodeIdentity returns the node network identity

type Identity

type Identity struct {
	PeerID string `json:"peer_id"`
	ENR    string `json:"enr"`
}

Jump to

Keyboard shortcuts

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