observer

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package observer provides storage observer

Package observer provides storage observer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(o *observer) error

func WithBackupDuration

func WithBackupDuration(dur string) Option

func WithBlobStorage

func WithBlobStorage(storage storage.Storage) Option

func WithDir

func WithDir(dir string) Option

func WithErrGroup

func WithErrGroup(eg errgroup.Group) Option

func WithPostStopTimeout

func WithPostStopTimeout(dur string) Option

func WithTicker added in v0.0.47

func WithTicker(enabled bool) Option

func WithWatch added in v0.0.47

func WithWatch(enabled bool) Option

type StorageObserver

type StorageObserver interface {
	Start(ctx context.Context) (<-chan error, error)
	PostStop(ctx context.Context) error
}

func New

func New(opts ...Option) (so StorageObserver, err error)

Jump to

Keyboard shortcuts

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