app

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func NewConfig

func NewConfig(config *store.ConfigStore) *Config

func (*Config) Config

func (c *Config) Config() interface{}

func (*Config) Get

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

func (*Config) Watch

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

type Configuration

type Configuration interface {
	Config() interface{}

	Get(key string) (Entry, error)

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

type Entry

type Entry struct {
	Value interface{}
}

Jump to

Keyboard shortcuts

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