modules

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

func NewModule

func NewModule(name string, version *semver.SemVer) *Module

func (*Module) Name

func (m *Module) Name() string

func (*Module) SetStartFn

func (m *Module) SetStartFn(fn StartFn)

func (*Module) Start

func (m *Module) Start(ctx context.Context, lgr logger.ILogger) (bool, error)

func (*Module) StartFn

func (m *Module) StartFn() StartFn

func (*Module) Version

func (m *Module) Version() *semver.SemVer

type StartFn

type StartFn func(context.Context, logger.ILogger) (bool, error)

Jump to

Keyboard shortcuts

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