config

package
v0.9.7-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2021 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigModule

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

configModule is plumbing implementation for setting and retrieving values from local config.

func NewConfigModule

func NewConfigModule(repo repo2.Repo) *ConfigModule

NewConfig returns a new configModule.

func (*ConfigModule) API

func (s *ConfigModule) API() apiface.IConfig

func (*ConfigModule) Get

func (s *ConfigModule) Get(dottedKey string) (interface{}, error)

Get gets a value from config

func (*ConfigModule) Set

func (s *ConfigModule) Set(dottedKey string, jsonString string) error

Set sets a value in config

func (*ConfigModule) V0API added in v0.9.7

func (s *ConfigModule) V0API() apiface.IConfig

Jump to

Keyboard shortcuts

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