kvstore

package
v0.3.26 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	PubSubChannel = "_apoxy_pubsub"
)

Variables

This section is empty.

Functions

func NewK8sServiceDiscovery

func NewK8sServiceDiscovery(namespace, labelSelector string) map[string]interface{}

NewK8sServiceDiscovery creates a new k8s service discovery plugin.

Types

type Store

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

func New

func New(namespace, labelSelector string) *Store

New creates a new kvstore instance.

func (*Store) NewDMap

func (s *Store) NewDMap(name string) (olric.DMap, error)

NewDMap creates a new DMap.

func (*Store) NewPubSub added in v0.2.3

func (s *Store) NewPubSub() (*olric.PubSub, error)

func (*Store) Start

func (s *Store) Start(started chan struct{}) error

Start starts the kvstore. It returns an error if the kvstore fails to start. Uses background context created by New() method.

func (*Store) Stop

func (s *Store) Stop(ctx context.Context) error

Stop stops the kvstore.

Jump to

Keyboard shortcuts

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