s3

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*S3)

func WithAccessKeyID

func WithAccessKeyID(accessKeyID string) Option

func WithAccessSecretKey

func WithAccessSecretKey(accessSecretKey string) Option

func WithBatchSize

func WithBatchSize(batchSize int) Option

func WithBucketName

func WithBucketName(bucketName string) Option

func WithBucketRegion

func WithBucketRegion(bucketRegion string) Option

func WithCustomEndpoint

func WithCustomEndpoint(customEndpoint string) Option

func WithPathPrefix

func WithPathPrefix(pathPrefix string) Option

type S3

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

func New

func New(opts ...Option) *S3

func (*S3) Flush

func (s *S3) Flush(ctx context.Context, msgs []kawa.Message[[]byte]) error

Flush sends the given messages of type kawa.Message[type.Event] to an s3 bucket

func (*S3) Run

func (s *S3) Run(ctx context.Context) error

func (*S3) Send

func (s *S3) Send(ctx context.Context, ack func(), msgs ...kawa.Message[[]byte]) error

Jump to

Keyboard shortcuts

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