Documentation ¶
Index ¶
- Constants
- func NewDemoService(params ...any) (any, error)
- type DemoService
- type DemoServiceProvider
- func (dsp *DemoServiceProvider) Boot(container framework.Container) error
- func (dsp *DemoServiceProvider) IsDefer() bool
- func (dsp *DemoServiceProvider) Name() string
- func (dsp *DemoServiceProvider) Params(container framework.Container) []any
- func (dsp *DemoServiceProvider) Register(container framework.Container) framework.NewInstance
- type IService
- type Student
Constants ¶
View Source
const DemoKey = "web:demo"
关键字凭证
Variables ¶
This section is empty.
Functions ¶
func NewDemoService ¶
Types ¶
type DemoService ¶
type DemoService struct { // 实现接口 IService // contains filtered or unexported fields }
func (*DemoService) GetAllStudent ¶
func (service *DemoService) GetAllStudent() []Student
type DemoServiceProvider ¶
type DemoServiceProvider struct { framework.ServiceProvider // contains filtered or unexported fields }
func (*DemoServiceProvider) Boot ¶
func (dsp *DemoServiceProvider) Boot(container framework.Container) error
func (*DemoServiceProvider) IsDefer ¶
func (dsp *DemoServiceProvider) IsDefer() bool
func (*DemoServiceProvider) Name ¶
func (dsp *DemoServiceProvider) Name() string
func (*DemoServiceProvider) Params ¶
func (dsp *DemoServiceProvider) Params(container framework.Container) []any
func (*DemoServiceProvider) Register ¶
func (dsp *DemoServiceProvider) Register(container framework.Container) framework.NewInstance
Click to show internal directories.
Click to hide internal directories.