files

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.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 AcceptedFile

type AcceptedFile struct {
	FileID   string
	ShardKey string

	Hostname string

	AcceptedAt time.Time
	CanceledAt time.Time
}

type MockRepository

type MockRepository struct {
	Err error
}

func (*MockRepository) Cancel

func (r *MockRepository) Cancel(_ context.Context, fileID string) error

func (*MockRepository) Record

func (r *MockRepository) Record(_ context.Context, file AcceptedFile) error

type Repository

type Repository interface {
	Record(ctx context.Context, file AcceptedFile) error
	Cancel(ctx context.Context, fileID string) error
}

func NewMockRepository added in v0.31.1

func NewMockRepository() Repository

func NewRepository

func NewRepository(db *sql.DB) Repository

func NewSpannerRepository added in v0.31.0

func NewSpannerRepository(client *spanner.Client) Repository

Jump to

Keyboard shortcuts

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