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.
Click to show internal directories.
Click to hide internal directories.