file

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommitError added in v1.3.0

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

func NewCommitError added in v1.3.0

func NewCommitError(ctx context.Context, err error, event string, logData log.Data) CommitError

func (CommitError) Commit added in v1.3.0

func (n CommitError) Commit() bool

func (CommitError) Error added in v1.3.0

func (n CommitError) Error() string

type FilesService added in v1.3.0

type FilesService interface {
	Checker(ctx context.Context, state *healthcheck.CheckState) error
	MarkFileMoved(ctx context.Context, path string, etag string) error
}

type MoverCopier added in v1.3.0

type MoverCopier struct {
	PublicClient  S3ClientV2
	PrivateClient S3ClientV2
	FilesService  FilesService
}

func NewMoverCopier added in v1.3.0

func NewMoverCopier(public, private S3ClientV2, filesClient FilesService) MoverCopier

func (MoverCopier) HandleFilePublishMessage added in v1.3.0

func (d MoverCopier) HandleFilePublishMessage(ctx context.Context, msgs []kafka.Message) error

type Published

type Published struct {
	Path        string `avro:"path"`
	Type        string `avro:"type"`
	Etag        string `avro:"etag"`
	SizeInBytes string `avro:"sizeInBytes"`
}

type S3ClientV2

type S3ClientV2 interface {
	Upload(input *s3manager.UploadInput, options ...func(*s3manager.Uploader)) (*s3manager.UploadOutput, error)
	Get(key string) (io.ReadCloser, *int64, error)
	FileExists(key string) (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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