model

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainTxId = "00000000-0000-0000-0000-000000000000"
)

Variables

This section is empty.

Functions

func GetTxId added in v1.0.0

func GetTxId(ctx context.Context) string

func StoreTxId added in v1.0.0

func StoreTxId(ctx context.Context, txId string) context.Context

Types

type Content

type Content struct {
	Size   uint64
	Reader io.ReadCloser
}

type ContentFile added in v1.0.0

type ContentFile struct {
	Id         string
	ParentPath string
}

func (*ContentFile) GetPath added in v1.0.0

func (f *ContentFile) GetPath() string

type Dir

type Dir struct {
	Id         string
	FileCount  uint64
	ParentPath string
}

func (*Dir) GetPath

func (d *Dir) GetPath() string

type File

type File struct {
	Key       string
	ContentId string
}

type FileFilter added in v1.0.0

type FileFilter struct {
	TxId     *string
	BeforeTs *time.Time
}

type Root

type Root struct {
	Path  string
	Free  uint64
	Count uint64
}

type RootMap

type RootMap map[string]*Root

func (RootMap) Select

func (rm RootMap) Select(size uint64) *Root

type Stat

type Stat struct {
	Path  string
	Total uint64
	Free  uint64
	Used  uint64
}

type Transaction added in v1.0.0

type Transaction struct {
	Id       string
	IsoLevel TxIsoLevel
	CreateTs time.Time
}

type TxIsoLevel added in v1.0.0

type TxIsoLevel uint8

Jump to

Keyboard shortcuts

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