storage

package
v0.5.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

type Collection interface {
	FindOne(ctx context.Context, filter interface{}) (Decoder, error)
	DeleteOne(ctx context.Context, filter interface{}) error
	InsertOne(ctx context.Context, doc interface{}) error
	UpdateOne(ctx context.Context, filter interface{}, doc interface{}) error
	DeleteMany(ctx context.Context, filter interface{}) error
}

type Database

type Database interface {
	Collection(collName string) Collection
}

type Decoder added in v0.4.2

type Decoder interface {
	Decode(v interface{}) error
}

type Disconnector

type Disconnector interface {
	Disconnect(ctx context.Context) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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