config

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrefAppRegistered = "app.registered"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ViperConfig

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

func LoadViperConfig added in v1.1.0

func LoadViperConfig(name string) (*ViperConfig, error)

func (*ViperConfig) Delete

func (c *ViperConfig) Delete(key string) error

func (*ViperConfig) Get

func (c *ViperConfig) Get(key string, value interface{}) error

func (*ViperConfig) IsRegistered

func (c *ViperConfig) IsRegistered() bool

func (*ViperConfig) Register

func (c *ViperConfig) Register() error

func (*ViperConfig) Set

func (c *ViperConfig) Set(key string, value interface{}) error

func (*ViperConfig) UnRegister

func (c *ViperConfig) UnRegister() error

Jump to

Keyboard shortcuts

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