events

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Emitter

type Emitter interface {
	FilesUploaded(shardKey string, fileIDs []string) error
}

func NewEmitter

func NewEmitter(logger log.Logger, cfg *service.EventsConfig) (Emitter, error)

type FileUploaded

type FileUploaded struct {
	FileID     string    `json:"fileID"`
	ShardKey   string    `json:"shardKey"`
	UploadedAt time.Time `json:"uploadedAt"`
}

func (FileUploaded) Bytes

func (f FileUploaded) Bytes() []byte

type MockEmitter

type MockEmitter struct{}

func (*MockEmitter) FilesUploaded

func (*MockEmitter) FilesUploaded(shardKey string, fileIDs []string) error

Jump to

Keyboard shortcuts

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