provider

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	Type reflect.Type
	Name string
}

Key

func (Key) IsGroup

func (k Key) IsGroup() bool

deprecated

func (Key) String

func (k Key) String() string

func (Key) Value

func (k Key) Value() reflect.Value

Value creates new value of key type.

type Provider

type Provider interface {
	fmt.Stringer
	Provide(arguments []reflect.Value) (reflect.Value, error)
	ResultType() reflect.Type
	Arguments() (args []Key)
}

Provider

type Type

type Type int

Type is provider type

const (
	Constructor Type = iota + 1
	Combined
	Object
	Direct
)

func DetectType

func DetectType(rawProvider interface{}) Type

DetectType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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