configfile

package
v0.0.0-...-492bda3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: MIT Imports: 11 Imported by: 0

README

configfile

configfile implements configio interfaces for a file backend.

see tests for example use cases

Documentation

Index

Constants

View Source
const (
	OptFilePath = "file"
)

options here can be used during instantiation of new manager

Variables

This section is empty.

Functions

func NewManager

func NewManager(ctx context.Context, options ...interface{}) (configio.ConfigManager, error)

NewManager returns instance of ConfigManager interface. ConfigManager should be used by clients who wish to read and write config and are not going to perform a watch

func NewManagerWithWatch

func NewManagerWithWatch(ctx context.Context, options ...interface{}) (configio.ConfigManagerWithWatch, error)

NewManagerWithWatch returns instance of ConfigManagerWithWatch interface. ConfigManagerWithWatch should be used by clients requiring full config management features

func NewReader

func NewReader(ctx context.Context, options ...interface{}) (configio.ConfigReader, error)

NewReader returns instance of ConfigReader interface. ConfigReader should be used by clients who just wish to read config and/or for clients who should be given read permissions only

func NewWatcher

func NewWatcher(ctx context.Context, options ...interface{}) (configio.ConfigWatcher, error)

NewWatcher returns an instance of ConfigWatcher interface. ConfigWatcher should be used by clients who only wish to watch config changes

func NewWriter

func NewWriter(ctx context.Context, options ...interface{}) (configio.ConfigWriter, error)

NewWriter returns instance of ConfigWriter interface. ConfigWriter should be used by clients who just wish to write config and/or for clients who should be given write permissions only

Types

This section is empty.

Jump to

Keyboard shortcuts

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