demo

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Key = "gone:demo"

Variables

This section is empty.

Functions

func NewDemoService

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

Types

type DemoService

type DemoService struct {
	// 好习惯,必须实现
	Service
	// contains filtered or unexported fields
}

func (*DemoService) GetFoo

func (s *DemoService) GetFoo() Foo

type DemoServiceProvider

type DemoServiceProvider struct {
}

func (*DemoServiceProvider) Boot

func (*DemoServiceProvider) IsDefer

func (sp *DemoServiceProvider) IsDefer() bool

func (*DemoServiceProvider) Name

func (sp *DemoServiceProvider) Name() string

func (*DemoServiceProvider) Params

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

func (*DemoServiceProvider) Register

type Foo

type Foo struct {
	Name string
}

type Service

type Service interface {
	GetFoo() Foo
}

Jump to

Keyboard shortcuts

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