filerepohelper

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileRepoHelper

type FileRepoHelper struct {
	// contains filtered or unexported fields
}

func (*FileRepoHelper) Add

func (h *FileRepoHelper) Add(ctx context.Context, file *models.File) (err error)

func (*FileRepoHelper) GetTableNameByHash

func (h *FileRepoHelper) GetTableNameByHash() filerepo.GetTableNameFunc

func (*FileRepoHelper) GetTableNameById

func (h *FileRepoHelper) GetTableNameById() filerepo.GetTableNameFunc

func (*FileRepoHelper) Remove

func (h *FileRepoHelper) Remove(ctx context.Context, file *models.File) error

func (*FileRepoHelper) Update

func (h *FileRepoHelper) Update(ctx context.Context, file *models.File) error

type FileTableShardingConfig

type FileTableShardingConfig interface {
	GetShardingNumber(tableName, domainName, bizName string) int64
}

Jump to

Keyboard shortcuts

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