Documentation ¶
Index ¶
- type NodeStore
- func (r *NodeStore) Add(ctx context.Context, state models.NodeState) error
- func (r *NodeStore) Delete(ctx context.Context, nodeID string) error
- func (r *NodeStore) FindPeer(ctx context.Context, peerID peer.ID) (peer.AddrInfo, error)
- func (r *NodeStore) Get(ctx context.Context, nodeID string) (models.NodeState, error)
- func (r *NodeStore) GetByPrefix(ctx context.Context, prefix string) (models.NodeState, error)
- func (r *NodeStore) List(ctx context.Context, filters ...routing.NodeStateFilter) ([]models.NodeState, error)
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) GetByPrefix ¶
Click to show internal directories.
Click to hide internal directories.