rpc

package
v0.0.1-rc6 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminApi

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

func NewAdminApi

func NewAdminApi(ip string, port string) (*AdminApi, error)

func (*AdminApi) AddPeer

func (api *AdminApi) AddPeer(enode string) (bool, error)

func (*AdminApi) NodeInfo

func (api *AdminApi) NodeInfo() (*NodeInfo, error)

func (*AdminApi) Peers

func (api *AdminApi) Peers() ([]NodeInfo, error)

type NetApi

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

func NewNetApi

func NewNetApi(ip string, port string) (*NetApi, error)

func (*NetApi) NodeInfo

func (api *NetApi) NodeInfo() (*NodeInfo, error)

type NodeInfo

type NodeInfo struct {
	Pubkey string
	Port   string
}

Jump to

Keyboard shortcuts

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