demo

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const DemoKey = "nice:devops"

Variables

This section is empty.

Functions

func NewService

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

Types

type IService

type IService interface {
	GetAllStudent() []Student
}

type OpsProvider

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

func (*OpsProvider) Boot

func (op *OpsProvider) Boot(c framework.Container) error

func (*OpsProvider) IsDefer

func (op *OpsProvider) IsDefer() bool

func (*OpsProvider) Name

func (op *OpsProvider) Name() string

func (*OpsProvider) Params

func (op *OpsProvider) Params(c framework.Container) []interface{}

func (*OpsProvider) Register

type Service

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

func (*Service) GetAllStudent

func (s *Service) 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