Documentation ¶
Index ¶
- type Plugin
- func (p *Plugin) Init() error
- func (p *Plugin) ProvideWithInterfaceAndStruct(named endure.Named, p3 *Plugin3) (SuperInterface, error)
- func (p *Plugin) ProvideWithName(named endure.Named) (SuperInterface, error)
- func (p *Plugin) ProvideWithOutName() (SuperInterface, error)
- func (p *Plugin) Provides() []any
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop() error
- type Plugin2
- type Plugin3
- type SomeOtherStruct
- type SuperInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct { }
func (*Plugin) ProvideWithInterfaceAndStruct ¶
func (*Plugin) ProvideWithName ¶
func (p *Plugin) ProvideWithName(named endure.Named) (SuperInterface, error)
func (*Plugin) ProvideWithOutName ¶
func (p *Plugin) ProvideWithOutName() (SuperInterface, error)
type Plugin2 ¶
type Plugin2 struct { }
func (*Plugin2) Init ¶
func (p *Plugin2) Init(super SuperInterface) error
type SomeOtherStruct ¶
type SomeOtherStruct struct{}
func (*SomeOtherStruct) Yo ¶
func (s *SomeOtherStruct) Yo() string
type SuperInterface ¶
type SuperInterface interface {
Yo() string
}
func NewSomeOtherStruct ¶
func NewSomeOtherStruct() SuperInterface
Click to show internal directories.
Click to hide internal directories.