Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LazyInit ¶
type LazyInit struct {
// contains filtered or unexported fields
}
LazyInit is used as a uniformed way of lazily setting up clients. This is necessary so that fake packages can use the same type.
func NewLazyInit ¶
func NewLazyInit(f func() interface{}) *LazyInit
NewLazyInit returns a LazyInit that invokes the given function once. Its return value should then be used in the injection package's Get function.
Click to show internal directories.
Click to hide internal directories.