module

package
v0.14.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 1 Imported by: 38

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provide

func Provide(dic *dig.Container, providers Module) error

Provide set providers functions to DI container.

Types

type Module

type Module []*Provider

Module type

func Combine

func Combine(mods ...Module) Module

Combine multiple modules into new one.

func New added in v0.5.7

func New(fn interface{}, opts ...dig.ProvideOption) Module

New single module.

func (Module) Append

func (m Module) Append(mods ...Module) Module

Append module to target module and return new module.

func (Module) AppendConstructor

func (m Module) AppendConstructor(constructors ...interface{}) Module

AppendConstructor adds constructors into the module and return new Module.

type Provider

type Provider struct {
	Constructor interface{}
	Options     []dig.ProvideOption
}

Provider struct

Jump to

Keyboard shortcuts

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