goshot

package module
v0.0.0-...-2e5128f Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 2 Imported by: 0

README

goshot

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bean

type Bean struct {
	Name  string
	Group string
	IBean
}

func BeanOnly

func BeanOnly(ib IBean) *Bean

func BeanWithGroup

func BeanWithGroup(ib IBean, gr string) *Bean

func BeanWithName

func BeanWithName(ib IBean, name string) *Bean

type Goshot

type Goshot struct {
	*viper.Viper
	*dig.Container
}

func NewGoshot

func NewGoshot(opts ...GoshotOption) (*Goshot, error)

func (*Goshot) Init

func (g *Goshot) Init() (err error)

func (*Goshot) RegisteBean

func (g *Goshot) RegisteBean(bean *Bean) error

func (*Goshot) RegisteBeans

func (g *Goshot) RegisteBeans(beans ...*Bean) (err error)

type GoshotOption

type GoshotOption func(opt *Goshot) error

func ConfigName

func ConfigName(in string) GoshotOption

func ConfigPath

func ConfigPath(in []string) GoshotOption

func ConfigType

func ConfigType(in string) GoshotOption

func RemoteProvider

func RemoteProvider(provider, endpoint, path string) GoshotOption

func SecureRemoteProvider

func SecureRemoteProvider(provider, endpoint, path, secretkeyring string) GoshotOption

type IBean

type IBean interface {
	Constructor() interface{}
}

Jump to

Keyboard shortcuts

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