config

package
v0.0.0-...-5ea7d2a Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IConfigProvider

type IConfigProvider interface {
	Init(config providers.IProviderConfig) error
	Read(ctx context.Context, object string, field string, localContext interface{}) (interface{}, error)
	ReadObject(ctx context.Context, object string, localContext interface{}) (map[string]interface{}, error)
	Set(ctx context.Context, object string, field string, value interface{}) error
	SetObject(ctx context.Context, object string, value map[string]interface{}) error
	Remove(ctx context.Context, object string, field string) error
	RemoveObject(ctx context.Context, object string) error
}

type IExtConfigProvider

type IExtConfigProvider interface {
	Get(ctx context.Context, object string, field string, overrides []string, localContext interface{}) (interface{}, error)
	GetObject(ctx context.Context, object string, overrides []string, localContext interface{}) (map[string]interface{}, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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