opt

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: MIT Imports: 2 Imported by: 105

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *Options)

func Config

func Config(config *viper.Viper) Option

func Group

func Group(group string) Option

func Name

func Name(name string) Option

func Prefix

func Prefix(prefix string) Option

type Options

type Options struct {
	Config *viper.Viper
	Prefix string
	Name   string
	Group  string
}

func New

func New(opts ...Option) *Options

func (*Options) DiOptions

func (o *Options) DiOptions() []dig.ProvideOption

func (*Options) UnmarshalConfig

func (o *Options) UnmarshalConfig(config interface{}) error

Jump to

Keyboard shortcuts

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