Documentation ¶
Index ¶
- func AddFile(filePath string, parser koanf.Parser) error
- func AddJSONFile(filePath string) error
- func BindKeyedOptionPath[T any](repo *Repository, key string, path string)
- func BindKeyedOptionValue[T any](repo *Repository, key string, value T)
- func BindOptionPath[T any](repo *Repository, path string)
- func BindOptionValue[T any](repo *Repository, value T)
- func BindType[T any](key string)
- func Get[T any]() (out *T, err error)
- func GetByKey(key string, inout interface{}) error
- func GetInout(inout any) error
- type IOptionInjector
- type Option
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddJSONFile ¶
func BindKeyedOptionPath ¶
func BindKeyedOptionPath[T any](repo *Repository, key string, path string)
func BindKeyedOptionValue ¶
func BindKeyedOptionValue[T any](repo *Repository, key string, value T)
func BindOptionPath ¶
func BindOptionPath[T any](repo *Repository, path string)
func BindOptionValue ¶
func BindOptionValue[T any](repo *Repository, value T)
Types ¶
type IOptionInjector ¶
type IOptionInjector interface {
// contains filtered or unexported methods
}
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewOptionRepository ¶
func NewOptionRepository() *Repository
func (*Repository) BindByPath ¶
func (ss *Repository) BindByPath(key string, ty reflect.Type, path string)
func (*Repository) BindByValue ¶
func (ss *Repository) BindByValue(key string, ty reflect.Type, value any)
Click to show internal directories.
Click to hide internal directories.