peer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connect

type Connect struct {
	Message string
}

func NewConnect

func NewConnect() *Connect

func (*Connect) Connect

func (i *Connect) Connect(ip []byte, port uint16) error

type ConnectDefault

type ConnectDefault struct {
	Message string
}

func NewConnectDefault

func NewConnectDefault() *ConnectDefault

func (*ConnectDefault) Get

func (i *ConnectDefault) Get() error

type ConnectNext

type ConnectNext struct {
	Message string
}

func NewConnectNext

func NewConnectNext() *ConnectNext

func (*ConnectNext) Get

func (i *ConnectNext) Get() error

type Disconnect

type Disconnect struct {
	Message string
}

func NewDisconnect

func NewDisconnect() *Disconnect

func (*Disconnect) Disconnect

func (i *Disconnect) Disconnect(nodeId string) error

type FoundPeers

type FoundPeers struct {
	FoundPeers []*item.FoundPeer
}

func NewFoundPeers

func NewFoundPeers() *FoundPeers

func (*FoundPeers) Get

func (c *FoundPeers) Get(ip []byte, port uint16) error

type Get

type Get struct {
	Message string
}

func NewGet

func NewGet() *Get

func (*Get) Get

func (i *Get) Get() error

type History

type History struct {
	Connections []admin.Connection
}

func NewHistory

func NewHistory() *History

func (*History) Get

func (c *History) Get() error

type ListConnections

type ListConnections struct {
	Connections string
}

func NewListConnections

func NewListConnections() *ListConnections

func (*ListConnections) List

func (c *ListConnections) List() error

type LoopingToggle

type LoopingToggle struct {
	Message string
}

func NewLoopingToggle

func NewLoopingToggle() *LoopingToggle

func (*LoopingToggle) Disable

func (i *LoopingToggle) Disable() error

func (*LoopingToggle) Enable

func (i *LoopingToggle) Enable() error

Jump to

Keyboard shortcuts

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