interfaces

package
v0.0.0-...-4092974 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Panic(i ...interface{})
	Panicf(format string, args ...interface{})
	Error(i ...interface{})
	Errorf(format string, args ...interface{})
	Info(i ...interface{})
	Infof(format string, args ...interface{})
	Fatal(i ...interface{})
	Fatalf(format string, args ...interface{})
}

type Repository

type Repository interface {
	List(ctx context.Context, pageNumber, pageSize int64, results interface{}) error
	FindOne(ctx context.Context, id interface{}, v interface{}) error
	CreateOne(ctx context.Context, document interface{}) error
	CreateMany(ctx context.Context, documents []interface{}) error
	UpsertOne(ctx context.Context, id interface{}, document interface{}) error
	UpdateOne(ctx context.Context, id interface{}, document interface{}) error
	ReplaceOne(ctx context.Context, id interface{}, document interface{}) error
	DeleteOne(ctx context.Context, id interface{}) error
	CountAll(ctx context.Context) (int64, error)
	DropCollection(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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