plugin6

package
v2.4.5 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 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 Named

type Named interface {
	// Name return user friendly name of the plugin
	Name() string
}

type Plugin

type Plugin struct {
}

func (*Plugin) Init

func (p *Plugin) Init() error

func (*Plugin) ProvideWithInterfaceAndStruct

func (p *Plugin) ProvideWithInterfaceAndStruct() SuperInterface

func (*Plugin) ProvideWithName

func (p *Plugin) ProvideWithName() SuperInterface

func (*Plugin) ProvideWithOutName

func (p *Plugin) ProvideWithOutName() SuperInterface

func (*Plugin) Provides

func (p *Plugin) Provides() []*dep.Out

Provides declares factory methods.

func (*Plugin) Serve

func (p *Plugin) Serve() chan error

func (*Plugin) Stop

func (p *Plugin) Stop(context.Context) error

type Plugin2

type Plugin2 struct {
}

func (*Plugin2) Init

func (p *Plugin2) Init(super Yo) error

func (*Plugin2) Name

func (p *Plugin2) Name() string

func (*Plugin2) Serve

func (p *Plugin2) Serve() chan error

func (*Plugin2) Stop

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

type Plugin3

type Plugin3 struct {
}

func (*Plugin3) Boo

func (p *Plugin3) Boo() string

func (*Plugin3) Init

func (p *Plugin3) Init() error

func (*Plugin3) Serve

func (p *Plugin3) Serve() chan error

func (*Plugin3) Stop

func (p *Plugin3) Stop(context.Context) error

type SomeOtherStruct

type SomeOtherStruct struct{}

func (*SomeOtherStruct) Yo

func (s *SomeOtherStruct) Yo() string

type SuperInterface

type SuperInterface interface {
	Yo() string
}

func NewSomeOtherStruct

func NewSomeOtherStruct() SuperInterface

type Yo

type Yo interface {
	Yo() string
}

Jump to

Keyboard shortcuts

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