nodeid

package
v0.0.0-...-e477e18 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSatelliteID

func GetSatelliteID(ctx context.Context, address string) (string, error)

GetSatelliteID retrieves node identity from SSL endpoint. Only for testing. Using identified node id is not reliable.

Types

type Decode

type Decode struct {
	ID string `arg:""`
}

func (*Decode) Run

func (d *Decode) Run() error

type Encode

type Encode struct {
	ID string `arg:""`
}

func (*Encode) Run

func (e *Encode) Run() error

type Generate

type Generate struct {
}

func (*Generate) Run

func (g *Generate) Run() error

type NodeID

type NodeID struct {
	Decode   Decode   `cmd:"" help:"Decode base64 nodeid to binary"`
	Read     Read     `cmd:""`
	Encode   Encode   `cmd:"" help:"encode raw nodeid to base64"`
	Remote   Remote   `cmd:"" help:"read nodeid from remote DRPC port"`
	Generate Generate `cmd:""`
	Noise    Noise    `cmd:""`
}

type Noise

type Noise struct {
	Path string `arg:"" default:"."`
}

func (*Noise) Run

func (n *Noise) Run() error

type NullEncoding

type NullEncoding struct {
}

func (NullEncoding) Marshal

func (n NullEncoding) Marshal(msg drpc.Message) ([]byte, error)

func (NullEncoding) Unmarshal

func (n NullEncoding) Unmarshal(buf []byte, msg drpc.Message) error

type Read

type Read struct {
	ID     string `arg:""`
	Output string
}

func (*Read) Run

func (r *Read) Run() error

type Remote

type Remote struct {
	HostPort string `arg:""`
}

func (*Remote) Run

func (r *Remote) Run() error

Jump to

Keyboard shortcuts

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