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