Documentation ¶
Index ¶
- func NewHadeIDService(params ...interface{}) (interface{}, error)
- type HadeIDProvider
- func (provider *HadeIDProvider) Boot(c framework.Container) error
- func (provider *HadeIDProvider) IsDefer() bool
- func (provider *HadeIDProvider) Name() string
- func (provider *HadeIDProvider) Params(c framework.Container) []interface{}
- func (provider *HadeIDProvider) Register(c framework.Container) framework.NewInstance
- type HadeIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHadeIDService ¶
func NewHadeIDService(params ...interface{}) (interface{}, error)
Types ¶
type HadeIDProvider ¶
type HadeIDProvider struct { }
func (*HadeIDProvider) Boot ¶
func (provider *HadeIDProvider) Boot(c framework.Container) error
Boot will called when the service instantiate
func (*HadeIDProvider) IsDefer ¶
func (provider *HadeIDProvider) IsDefer() bool
IsDefer define whether the service instantiate when first make or register
func (*HadeIDProvider) Name ¶
func (provider *HadeIDProvider) Name() string
/ Name define the name for this service
func (*HadeIDProvider) Params ¶
func (provider *HadeIDProvider) Params(c framework.Container) []interface{}
Params define the necessary params for NewInstance
func (*HadeIDProvider) Register ¶
func (provider *HadeIDProvider) Register(c framework.Container) framework.NewInstance
Register registe a new function for make a service instance
type HadeIDService ¶
type HadeIDService struct { }
func (*HadeIDService) NewID ¶
func (s *HadeIDService) NewID() string
Click to show internal directories.
Click to hide internal directories.