config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 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

API create a new config api implement

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