demo

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const DemoKey = "web:demo"

关键字凭证

Variables

This section is empty.

Functions

func NewDemoService

func NewDemoService(params ...any) (any, error)

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

type IService

type IService interface {
	GetAllStudent() []Student
}

type Student

type Student struct {
	ID   int
	Name string
}

Jump to

Keyboard shortcuts

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