beforeop

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package beforeop implements wrapper around blob.Storage that run a given callback before all operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUniformWrapper added in v0.10.6

func NewUniformWrapper(wrapped blob.Storage, cb callback) blob.Storage

NewUniformWrapper is same as NewWrapper except that it only accepts a single uniform callback for all the operations for simpler use-cases.

func NewWrapper

func NewWrapper(wrapped blob.Storage, onGetBlob onGetBlobCallback, onGetMetadata, onDeleteBlob callback, onPutBlob onPutBlobCallback) blob.Storage

NewWrapper creates a wrapped storage interface for data operations that need to run a callback before the actual operation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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