files

package
v0.30.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 7 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 NewRepository

func NewRepository(db *sql.DB) Repository

Jump to

Keyboard shortcuts

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