demo

package
v0.0.0-...-d87d503 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DemoKey = "demo"

Variables

This section is empty.

Functions

func NewService

func NewService(params ...interface{}) (interface{}, error)

NewService

Types

type DemoProvider

type DemoProvider struct {
	framework.ServiceProvider
	// contains filtered or unexported fields
}

DemoProvider

func (*DemoProvider) Boot

func (sp *DemoProvider) Boot(c framework.Container) error

Implementation boot

func (*DemoProvider) IsDefer

func (sp *DemoProvider) IsDefer() bool

Implementation IsDefer

func (*DemoProvider) Name

func (sp *DemoProvider) Name() string

Implementation name identify

func (*DemoProvider) Params

func (sp *DemoProvider) Params(c framework.Container) []interface{}

Implementation params

func (*DemoProvider) Register

Implementation Register

type IService

type IService interface {
	GetAllStudent() []Student
}

Service interface

type Service

type Service struct {
	// contains filtered or unexported fields
}

Define Service

func (*Service) GetAllStudent

func (s *Service) GetAllStudent() []Student

Implementation GetAllStudent

type Student

type Student struct {
	ID   int
	Name string
}

Student struct

Jump to

Keyboard shortcuts

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