basket

package
v0.6.54 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix               = "BASKET_"
	UserCreated          = Prefix + "USER_CREATED"
	UserDeleted          = Prefix + "USER_DELETED"
	GameRevisionUploaded = Prefix + "GAME_REVISION_UPLOADED"
)

Variables

This section is empty.

Functions

func NewGameRevisionUploadedEvent added in v0.6.54

func NewGameRevisionUploadedEvent(gameID, ownerID, revisionID, sourceLocation string) event.Event

func NewUserCreatedEvent

func NewUserCreatedEvent(userID string) (event.Event, error)

func NewUserDeletedEvent

func NewUserDeletedEvent(userID string) (event.Event, error)

Types

type GameRevisionUploadedPayload added in v0.6.54

type GameRevisionUploadedPayload struct {
	GameID               string `json:"game_id"`
	OwnerID              string `json:"owner_id"`
	RevisionID           string `json:"revision_id"`
	SourceBucketLocation string `json:"source_bucket_location"`
}

type UserCreatedPayload

type UserCreatedPayload struct {
	UserID string `json:"user_id"`
}

type UserDeletedPayload

type UserDeletedPayload struct {
	UserID string `json:"user_id"`
}

Jump to

Keyboard shortcuts

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