Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_MESSAGE = "Hello world"
View Source
const TESTING_TOKEN = "token"
Variables ¶
This section is empty.
Functions ¶
func ResolverWithMessage ¶
func ResolverWithMessage(message string) func() Abstraction
func TokenResolver ¶
func TokenResolver() string
Types ¶
type Abstraction ¶
type Abstraction interface {
Greet()
}
func Resolver ¶
func Resolver() Abstraction
type FillableStruct ¶
type FillableStruct struct {
Message string `wire:",ignore"` // This also should be ignored by the container
TokenResolved string `wire:"token"` // This should be resolved by token
TypeResolved Abstraction // This should be resolved by their type
// contains filtered or unexported fields
}
func (FillableStruct) CheckResolvedFields ¶
func (s FillableStruct) CheckResolvedFields() error
type Implementation ¶
type Implementation struct {
Message string
}
func (*Implementation) Greet ¶
func (i *Implementation) Greet()
type InvalidStruct ¶
type InvalidStruct struct {
TokenResolved string `wire:"token"` // This should be resolved by token
TypeResolved Abstraction // This should be resolved by their type
Reader io.Reader
}
Click to show internal directories.
Click to hide internal directories.