randominterface

package
v2.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Name string
}

type Plugin1

type Plugin1 struct {
}

func (*Plugin1) Init

func (f *Plugin1) Init(db SuperInterface) error

func (*Plugin1) Serve

func (f *Plugin1) Serve() chan error

func (*Plugin1) Stop

func (f *Plugin1) Stop(context.Context) error

func (*Plugin1) Super

func (f *Plugin1) Super() string

type Plugin2

type Plugin2 struct {
}

func (*Plugin2) Init

func (f *Plugin2) Init() error

func (*Plugin2) ProvideDB

func (f *Plugin2) ProvideDB() *DB

func (*Plugin2) Provides

func (f *Plugin2) Provides() []*dep.Out

But provide some

func (*Plugin2) Serve

func (f *Plugin2) Serve() chan error

func (*Plugin2) Stop

func (f *Plugin2) Stop(context.Context) error

type SuperInterface

type SuperInterface interface {
	Super() string
}

Jump to

Keyboard shortcuts

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