Documentation
¶
Index ¶
- 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)
- type IOptionInjector
- type Option
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 Option ¶
type Option[T any] struct { // contains filtered or unexported fields }
func (*Option[T]) OnKeyedChanged ¶ added in v0.0.14
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewOptionRepository ¶
func NewOptionRepository(config configuration.IConfiguration) *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)
func (*Repository) GetOptionWrapper ¶ added in v0.0.14
func (ss *Repository) GetOptionWrapper(ty reflect.Type) any
Click to show internal directories.
Click to hide internal directories.