Documentation ¶
Overview ¶
Package observer provides storage observer
Package observer provides storage observer ¶
Package observer provides storage observer
Index ¶
- type BackupInfo
- type Hook
- type Option
- func WithBackupDuration(dur string) Option
- func WithBlobStorage(storage storage.Storage) Option
- func WithDir(dir string) Option
- func WithErrGroup(eg errgroup.Group) Option
- func WithHooks(hooks ...Hook) Option
- func WithPostStopTimeout(dur string) Option
- func WithTicker(enabled bool) Option
- func WithWatch(enabled bool) Option
- type StorageObserver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackupInfo ¶ added in v0.0.51
type Hook ¶ added in v0.0.51
type Hook interface { BeforeProcess(ctx context.Context, info *BackupInfo) (context.Context, error) AfterProcess(ctx context.Context, info *BackupInfo) error }
type Option ¶
type Option func(o *observer) error
func WithBackupDuration ¶
func WithBlobStorage ¶
func WithErrGroup ¶
func WithPostStopTimeout ¶
func WithTicker ¶ added in v0.0.47
Click to show internal directories.
Click to hide internal directories.