singleton

package
v0.0.0-...-3a05b22 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "singleton"

Variables

This section is empty.

Functions

func GetImpl

func GetImpl(sdId string, param interface{}) (interface{}, error)

func GetImplWithProxy

func GetImplWithProxy(sdId string, param interface{}) (interface{}, error)

func NewSingletonAutowire

func NewSingletonAutowire(sp autowire.SDIDParser, pl autowire.ParamLoader, facade autowire.Autowire) autowire.Autowire

NewSingletonAutowire create a singleton autowire based autowire, e.g. grpc, base.facade can be re-write to outer autowire

func RegisterStructDescriptor

func RegisterStructDescriptor(sd *autowire.StructDescriptor)

Types

type SingletonAutowire

type SingletonAutowire struct {
	base.AutowireBase
	// contains filtered or unexported fields
}

func (*SingletonAutowire) CanBeEntrance

func (s *SingletonAutowire) CanBeEntrance() bool

func (*SingletonAutowire) GetAllStructDescriptors

func (s *SingletonAutowire) GetAllStructDescriptors() map[string]*autowire.StructDescriptor

GetAllStructDescriptors should be re-write by facade

func (*SingletonAutowire) IsSingleton

func (s *SingletonAutowire) IsSingleton() bool

func (*SingletonAutowire) TagKey

func (s *SingletonAutowire) TagKey() string

TagKey should be re-writed by facade autowire

Jump to

Keyboard shortcuts

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