Help us shape the future of Go! Take the 2026 Go Developer Survey

store

package
v1.3.104 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package store pkg/deployment/ar/store/getall_cache.go c4-net-discovery

Package store pkg/deployment/ar/store/memory_store.go c4-net-discovery

Package store pkg/deployment/ar/store/redis_store.go c4-net-discovery

Package store pkg/deployment/ar/store/store.go c4-net-discovery

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoEntry means that there exists no entry for this PK.
	ErrNoEntry = errors.New("no entry for this PK")
	// ErrUnknownStoreType means that store type is unknown.
	ErrUnknownStoreType = errors.New("unknown store type")
	// ErrUnknownTransportType means that transport type is unknown.
	ErrUnknownTransportType = errors.New("unknown transport type")
)

Functions

This section is empty.

Types

type AddressStore

type AddressStore interface {
	Bind(ctx context.Context, netType types.Type, pk cipher.PubKey, visorData addrresolver.VisorData) error
	DelBind(ctx context.Context, netType types.Type, pk cipher.PubKey) error
	Resolve(_ context.Context, netType types.Type, pk cipher.PubKey) (addrresolver.VisorData, error)
	GetAll(ctx context.Context, netType types.Type) ([]string, error)
}

AddressStore stores PK to address mapping.

type Store

type Store interface {
	AddressStore
}

Store is an alias for AddressStore.

func New

func New(ctx context.Context, config storeconfig.Config, ttl time.Duration, logger *logging.Logger) (Store, error)

New constructs a new Store of requested type.

Jump to

Keyboard shortcuts

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