compacter

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunOnce

func RunOnce(s Store, options ...Option) error

func SetLoggerAdapter added in v0.6.1

func SetLoggerAdapter(adapter logger.Adapter)

func Start

func Start(ctx context.Context, s Store, options ...Option) error

Types

type Option

type Option func(options *Options) error

func Interval

func Interval(d time.Duration) Option

type Options

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

type Store

type Store interface {
	Reader(...store.ReaderOption) (store.Reader, error)
	Versions() ([]store.Version, error)
	DeleteVersion(time.Time) error
}

Jump to

Keyboard shortcuts

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