db

package
v0.6.2-Daito-RC1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exit

func Exit(db *Database)

func Init

func Init(db *Database)

Init function can perform some initialization work of different databases.

Types

type DBAdapter

type DBAdapter interface {
	CreateBucket(ctx context.Context, bucket *pb.Bucket) S3Error
	DeleteBucket(ctx context.Context, name string) S3Error
	UpdateBucket(ctx context.Context, bucket *pb.Bucket) S3Error
	GetBucketByName(ctx context.Context, name string, out *pb.Bucket) S3Error
	ListBuckets(ctx context.Context, in *pb.BaseRequest, out *[]pb.Bucket) S3Error
	CreateObject(ctx context.Context, in *pb.Object) S3Error
	UpdateObject(ctx context.Context, in *pb.Object) S3Error
	DeleteObject(ctx context.Context, in *pb.DeleteObjectInput) S3Error
	GetObject(ctx context.Context, in *pb.GetObjectInput, out *pb.Object) S3Error
	CountObjects(ctx context.Context, in *pb.ListObjectsRequest, out *ObjsCountInfo) S3Error
	UpdateObjMeta(ctx context.Context, objKey *string, bucketName *string, lastmod int64, setting map[string]interface{}) S3Error
	AddMultipartUpload(ctx context.Context, record *pb.MultipartUploadRecord) S3Error
	DeleteMultipartUpload(ctx context.Context, record *pb.MultipartUploadRecord) S3Error
}
var DbAdapter DBAdapter

DbAdapter is a global variable that controls database module.

Directories

Path Synopsis
drivers

Jump to

Keyboard shortcuts

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