filesystem

package
v0.14.1-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Invoke(
		fx.Annotate(
			NewProvider,
			fx.OnStart(func(ctx context.Context, p *Provider) error { return p.Start(ctx) }),
			fx.OnStop(func(ctx context.Context, p *Provider) error { return p.Stop(ctx) }),
		),
	),
)

Module is used on app bootstrap. nolint: gochecknoglobals

Functions

This section is empty.

Types

type Provider

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

func NewProvider

func NewProvider(conf *config.Configuration, processor rule.SetProcessor, logger zerolog.Logger) (*Provider, error)

func (*Provider) Start

func (p *Provider) Start(_ context.Context) error

func (*Provider) Stop

func (p *Provider) Stop(_ context.Context) error

Jump to

Keyboard shortcuts

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