events

package
v0.0.0-...-75d48fa Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 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 EventSink

type EventSink interface {
	PostLatestVersionCheck(ctx context.Context, userAgent string)
	PostFileDownload(ctx context.Context, userAgent string, version string, fileName string)
}

Why do these methods not return errors? They are intended to be fire-and-forget, best-effort methods that should not cause a user-facing error if they fail.

func NewCloudStorageEventSink

func NewCloudStorageEventSink(bucketName string, client *cloudstorage.Client) EventSink

func NewCloudStorageEventSinkWithSpecificDependencies

func NewCloudStorageEventSinkWithSpecificDependencies(bucketName string, client *cloudstorage.Client, timeSource func() time.Time, uuidSource func() uuid.UUID) EventSink

Jump to

Keyboard shortcuts

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