mwire

package module
v0.0.0-...-d9e7baf Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetaWireProvider = "wire:provider"
)

Variables

View Source
var (
	MetaNames = []string{MetaWireProvider}
)
View Source
var TmplWire string

Functions

func DefaultPkgGenFactory

func DefaultPkgGenFactory() meta.PkgGenFactory

func NewFunctions

func NewFunctions(gen *meta.TmplPkgGen) *functions

func Order

func Order(m *meta.Meta) int32

Order It is the injection order,lower values have higher priority(closer it is to the realization).

Types

type ParsedWireResult

type ParsedWireResult struct {
	Providers []types.Object
	Bindings  []*ProviderHolder
}

func (*ParsedWireResult) HasProvider

func (r *ParsedWireResult) HasProvider() bool

type ProviderHolder

type ProviderHolder struct {
	Provider      types.Object
	ProviderType  types.Type
	InjectedIface types.Type
	Order         int32
	IsBase        bool
}

Jump to

Keyboard shortcuts

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