notifier

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotifyFailed = errors.New("notification failed")

Functions

func StorageWithNotifier

func StorageWithNotifier(s storage.DirectoryAdmin, n nif.Notifier, opts ...Option) storage.DirectoryAdmin

StorageWithNotifier is a meta-storage driver that wraps a storage.DirectoryAdmin and notifies a notifier.Notifier on every operation. The notifier is called after the operation has been completed.

Types

type Option

type Option func(*notifierWithStorage)

func WithNotifyRetrier

func WithNotifyRetrier() Option

WithNotifyRetrier wraps the notifier with a retry mechanism.

Jump to

Keyboard shortcuts

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