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