module

package
v0.13.6 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 1 Imported by: 30

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 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

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