container

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 2 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	Provide(interface{}) error
	Provides(...interface{}) error
	Invoke(interface{}) error
}

func New

func New() Container

type DigDecorator

type DigDecorator struct {
	Dig *dig.Container
}

func NewDigDecorator

func NewDigDecorator() *DigDecorator

func (*DigDecorator) Invoke

func (container *DigDecorator) Invoke(function interface{}) error

func (*DigDecorator) Provide

func (container *DigDecorator) Provide(constructor interface{}) error

func (*DigDecorator) Provides

func (container *DigDecorator) Provides(constructors ...interface{}) error

Jump to

Keyboard shortcuts

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