tracing

package
v1.2.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeStore

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

func NewNodeStore

func NewNodeStore(delegate routing.NodeInfoStore) *NodeStore

func (*NodeStore) Add

func (r *NodeStore) Add(ctx context.Context, nodeInfo models.NodeInfo) error

func (*NodeStore) Delete

func (r *NodeStore) Delete(ctx context.Context, nodeID string) error

func (*NodeStore) FindPeer

func (r *NodeStore) FindPeer(ctx context.Context, peerID peer.ID) (peer.AddrInfo, error)

func (*NodeStore) Get

func (r *NodeStore) Get(ctx context.Context, nodeID string) (models.NodeInfo, error)

func (*NodeStore) GetByPrefix

func (r *NodeStore) GetByPrefix(ctx context.Context, prefix string) (models.NodeInfo, error)

func (*NodeStore) List

func (r *NodeStore) List(ctx context.Context, filters ...routing.NodeInfoFilter) ([]models.NodeInfo, error)

Jump to

Keyboard shortcuts

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