config

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, MIT Imports: 3 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() 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() IConfig

type IConfig added in v1.2.0

type IConfig interface {
	ConfigSet(ctx context.Context, dottedPath string, paramJSON string) error
	ConfigGet(ctx context.Context, dottedPath string) (interface{}, error)
}

Jump to

Keyboard shortcuts

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