cleanup

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingDependency = errors.New("missing dependency")

Functions

This section is empty.

Types

type Cleanup

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

func New added in v0.1.14

func New(config *Config, log logger.Logger, mailboxes *letterbox.MailboxService) *Cleanup

func (*Cleanup) Name

func (cs *Cleanup) Name() string

func (*Cleanup) Start

func (cs *Cleanup) Start() error

func (*Cleanup) Stop

func (cs *Cleanup) Stop() error

type Config

type Config struct {
	Interval time.Duration `json:"interval,omitempty"`
}

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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