manager

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: LGPL-2.1 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewModuleManager

func NewModuleManager(lg *zap.Logger, dir string) (*Manager, error)

func (*Manager) Find

func (mg *Manager) Find(name string) (*module.Module, bool)

Find returns the *Module by name

func (*Manager) LoadDir

func (mg *Manager) LoadDir(dir string) error

LoadDir loads modules from local directory

func (*Manager) LoadModule

func (mg *Manager) LoadModule(m *module.Module)

func (*Manager) Modules added in v0.2.0

func (mg *Manager) Modules() []*module.Module

func (*Manager) RootDir

func (mg *Manager) RootDir() string

Jump to

Keyboard shortcuts

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