inmemory

package
v1.5.0-dev14 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeStore added in v1.2.2

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

func NewNodeStore added in v1.2.2

func NewNodeStore(params NodeStoreParams) *NodeStore

func (*NodeStore) Add added in v1.2.2

func (r *NodeStore) Add(ctx context.Context, state models.NodeState) error

func (*NodeStore) Delete added in v1.2.2

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

func (*NodeStore) Get added in v1.2.2

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

func (*NodeStore) GetByPrefix added in v1.2.2

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

func (*NodeStore) List added in v1.2.2

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

type NodeStoreParams added in v1.2.2

type NodeStoreParams struct {
	TTL time.Duration
}

Jump to

Keyboard shortcuts

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