injector

package
v0.0.0-...-4156d8f Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultInjector

type DefaultInjector struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Opt) *DefaultInjector

func (*DefaultInjector) Inject

func (injector *DefaultInjector) Inject(c container.Container, o interface{}) error

type Injector

type Injector interface {
	Inject(container container.Container, o interface{}) error
}

type Opt

type Opt func(*DefaultInjector)

func OptSetLogger

func OptSetLogger(v xlog.Logger) Opt

func OptSetRecursive

func OptSetRecursive(recursive bool) Opt

Jump to

Keyboard shortcuts

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