registers

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 1 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 DB2

type DB2 struct {
	Name string
}

type Plugin1

type Plugin1 struct {
}

func (*Plugin1) Init

func (f *Plugin1) Init(db *DB, db2 *DB2) error

func (*Plugin1) Name

func (f *Plugin1) Name() string

func (*Plugin1) Serve

func (f *Plugin1) Serve() chan error

func (*Plugin1) Stop

func (f *Plugin1) Stop() error

type Plugin2

type Plugin2 struct {
}

func (*Plugin2) Init

func (f *Plugin2) Init() error

func (*Plugin2) ProvideDB

func (f *Plugin2) ProvideDB(name endure.Named) (*DB, error)

this is the same type but different packages foo10 invokes foo11 foo11 should get the foo10 name or provide vertex id

func (*Plugin2) ProvideDB2

func (f *Plugin2) ProvideDB2(name endure.Named, name2 endure.Named) (*DB2, error)

this is the same type but different packages foo10 invokes foo11 foo11 should get the foo10 name or provide vertex id

func (*Plugin2) Provides

func (f *Plugin2) Provides() []any

But provide some

func (*Plugin2) Serve

func (f *Plugin2) Serve() chan error

func (*Plugin2) Stop

func (f *Plugin2) Stop() error

Jump to

Keyboard shortcuts

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