Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶ added in v0.0.5
type Factory struct {
// contains filtered or unexported fields
}
func NewProxyFactory ¶
func NewProxyFactory(options ...FactoryOption) *Factory
func (*Factory) GetFirstInstance ¶ added in v0.0.5
func (pf *Factory) GetFirstInstance(realName string, realInstance interface{}, proxys ...func() interface{}) interface{}
GetFirstInstance implement init mul level proxy, RealInstance and proxys make sure both implement the same interface return firstProxy | realInstance
func (*Factory) GetInstances ¶ added in v0.0.5
type FactoryOption ¶ added in v0.0.5
type FactoryOption func(c *Factory)
type FactoryOptions ¶ added in v0.0.5
type FactoryOptions struct{}
func (FactoryOptions) WithLogger ¶ added in v0.0.5
func (FactoryOptions) WithLogger(log log.Logger) FactoryOption
Click to show internal directories.
Click to hide internal directories.