storage

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryStorage

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

func NewBinaryStorage

func NewBinaryStorage(statePath string) *BinaryStorage

func (*BinaryStorage) Add

func (a *BinaryStorage) Add(addrs []proto.TCPAddr) error

func (*BinaryStorage) AddKnown

func (a *BinaryStorage) AddKnown(new proto.TCPAddr) error

func (*BinaryStorage) All

func (a *BinaryStorage) All() ([]proto.TCPAddr, error)

func (*BinaryStorage) Known

func (a *BinaryStorage) Known() ([]proto.TCPAddr, error)

type Peers

type Peers []proto.TCPAddr

func (Peers) Len

func (a Peers) Len() int

func (Peers) Less

func (a Peers) Less(i, j int) bool

func (Peers) Swap

func (a Peers) Swap(i, j int)

Jump to

Keyboard shortcuts

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