mrstorage

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 21

Documentation

Index

Constants

View Source
const (
	ModelNameFile = "File"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type File added in v0.3.4

type File struct {
	ContentType string
	Name        string
	Size        int64
	Body        io.ReadCloser
}

type FileProvider added in v0.3.4

type FileProvider interface {
	Download(ctx context.Context, file *File) error
	Upload(ctx context.Context, file *File) error
	Remove(ctx context.Context, filePath string) error
}

type Sqlizer added in v0.3.3

type Sqlizer interface {
	ToSql() (string, []interface{}, error)
}

type Transaction added in v0.2.0

type Transaction interface {
	Begin(ctx context.Context) (Transaction, error)
	Commit(ctx context.Context) error
	Rollback(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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