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
Click to show internal directories.
Click to hide internal directories.