loader

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 1 Imported by: 4

README

loader

The loader is a module that loads other modules.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
}

func (*Base) Init

func (loader *Base) Init(opts ...Option) error

func (*Base) Start

func (loader *Base) Start(ctx context.Context) error

func (*Base) Stop

func (loader *Base) Stop(ctx context.Context) error

func (*Base) String

func (loader *Base) String() string

func (*Base) Watch

func (loader *Base) Watch() error

type Loader

type Loader interface {
	// Init initializes loader
	Init(opts ...Option) error
	// Start starts loader
	Start(ctx context.Context) error
	// Watch watches for changes
	Watch() error
	// Stop stops loader
	Stop(ctx context.Context) error
	// String returns loader name
	String() string
}

type Option

type Option func(o *Options)

type Options

type Options struct {
	// for alternative data
	Context context.Context
}

func NewOptions

func NewOptions(opts ...Option) *Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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