store

package
v0.7.26 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigStore

type ConfigStore struct {
	ConfigTree map[string]interface{}
	// contains filtered or unexported fields
}

ConfigStore :

func NewConfigStore

func NewConfigStore() *ConfigStore

NewConfigStore :

func (*ConfigStore) Get

func (c *ConfigStore) Get(key string) (Entry, error)

Get :

func (*ConfigStore) Put

func (c *ConfigStore) Put(key string, entry Entry) error

Put :

func (*ConfigStore) Watch

func (c *ConfigStore) Watch(ctx context.Context, ch chan event.Event) error

Watch :

type ConfigTreeWatcher

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

ConfigTreeWatcher :

type Entry

type Entry struct {
	Key       string
	Value     interface{}
	EventType string
}

Entry config entry

type EventBus

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

EventBus stores the information about watchers

type EventChannel

type EventChannel chan event.Event

EventChannel is a channel which can accept an Event

type Store

type Store interface {
	Put(key string, entry Entry) error

	Get(key string) (Entry, error)

	Watch(ctx context.Context, ch chan event.Event) error
}

Store :

Jump to

Keyboard shortcuts

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