binder

package
v1.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExpressionBinder added in v1.2.9

func NewExpressionBinder(configType string) configure.Binder

Types

type ExpressionBinder added in v1.2.9

type ExpressionBinder struct {
	*ViperBinder
}

func (*ExpressionBinder) SetConfig added in v1.2.9

func (e *ExpressionBinder) SetConfig(c []byte) error

type NopBinder

type NopBinder struct{}

func (*NopBinder) PropInject

func (n *NopBinder) PropInject(properties []*meta.Node) error

func (*NopBinder) SetConfig

func (n *NopBinder) SetConfig(c []byte) error

type ViperBinder

type ViperBinder struct {
	Viper *viper.Viper
}

func NewViperBinder

func NewViperBinder(configType string) *ViperBinder

func (*ViperBinder) PropInject

func (d *ViperBinder) PropInject(properties []*meta.Node) error

func (*ViperBinder) SetConfig

func (d *ViperBinder) SetConfig(c []byte) error

Jump to

Keyboard shortcuts

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