container

package
v0.0.48 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.0.46

type Config struct {
	Viper  *viper.Viper
	Logger log.API
}

type Container

type Container struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(fn func(*Config)) *Container

func (*Container) Add

func (p *Container) Add(plugins []schema.Plug) error

func (*Container) FInit

func (p *Container) FInit() error

func (*Container) Get

func (p *Container) Get(pluginNames ...string) ([]schema.Plug, error)

func (*Container) Init

func (p *Container) Init() error

func (*Container) Remove

func (p *Container) Remove(pluginName string) error

Jump to

Keyboard shortcuts

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