id

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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