basket

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AI3DModelGenerationSucceeded = Prefix + "3D_MODEL_GENERATION_SUCCEEDED"
)
View Source
const (
	AssetCreated = Prefix + "ASSET_CREATED"
)
View Source
const (
	AssetGenerationTaskCreated = Prefix + "ASSET_GENERATION_TASK_CREATED"
)
View Source
const (
	AssetUpdated = Prefix + "ASSET_UPDATED"
)
View Source
const (
	GameRevisionBuildFinished = Prefix + "GAME_REVISION_BUILD_FINISHED"
)
View Source
const (
	GameRevisionBuildRequested = Prefix + "GAME_REVISION_BUILD_REQUESTED"
)
View Source
const (
	GameRevisionPurged = Prefix + "GAME_REVISION_PURGED"
)
View Source
const (
	Prefix = "BASKET_"
)
View Source
const (
	UserCreated = Prefix + "USER_CREATED"
)
View Source
const (
	UserPurged = Prefix + "USER_PURGED"
)

Variables

This section is empty.

Functions

func NewAI3DModelGenerationSucceededEvent added in v0.6.56

func NewAI3DModelGenerationSucceededEvent(
	id string,
	downloadURLsExpireAt time.Time,
) (event.Event, error)

func NewAssetCreatedEvent added in v0.7.6

func NewAssetCreatedEvent(assetID string, skippedNormalization bool) (event.Event, error)

func NewAssetGenerationTaskCreated added in v0.7.5

func NewAssetGenerationTaskCreated(
	id string,
) (event.Event, error)

func NewAssetUpdatedEvent added in v0.7.7

func NewAssetUpdatedEvent(assetID string, skippedNormalization bool) (event.Event, error)

func NewGameRevisionBuildFailedPayload added in v0.6.58

func NewGameRevisionBuildFailedPayload(gameID, revisionID string, err error) event.Event

func NewGameRevisionBuildRequested added in v0.7.3

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

func NewGameRevisionBuildSuccessfulPayload added in v0.6.58

func NewGameRevisionBuildSuccessfulPayload(gameID, revisionID, serverLocation, clientLocation string) event.Event

func NewGameRevisionPurged added in v0.7.4

func NewGameRevisionPurged(revisionID string) event.Event

func NewUserCreatedEvent

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

func NewUserPurgedEvent added in v0.7.0

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

Types

type AI3DModelGenerationSucceededPayload added in v0.6.55

type AI3DModelGenerationSucceededPayload struct {
	ID                      string    `json:"id"`
	DownloadURLsExpireAtUTC time.Time `json:"download_urls_expire_at_utc"`
}

type AssetCreatedPayload added in v0.7.6

type AssetCreatedPayload struct {
	AssetID              string `json:"asset_id"`
	SkippedNormalization bool   `json:"skipped_normalization"`
}

type AssetGenerationTaskCreatedPayload added in v0.7.5

type AssetGenerationTaskCreatedPayload struct {
	ID string `json:"id"`
}

type AssetUpdatedPayload added in v0.7.7

type AssetUpdatedPayload struct {
	AssetID              string `json:"asset_id"`
	SkippedNormalization bool   `json:"skipped_normalization"`
}

type GameRevisionBuildFinishedPayload added in v0.6.58

type GameRevisionBuildFinishedPayload struct {
	GameID               string `json:"game_id"`
	RevisionID           string `json:"revision_id"`
	ErrorMessage         string `json:"error_message"`
	ServerBucketLocation string `json:"server_bucket_location"`
	ClientBucketLocation string `json:"client_bucket_location"`
}

type GameRevisionBuildRequestedPayload added in v0.7.3

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

type GameRevisionPurgedPayload added in v0.7.4

type GameRevisionPurgedPayload struct {
	RevisionID string
}

type UserCreatedPayload

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

type UserPurgedPayload added in v0.7.0

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

Jump to

Keyboard shortcuts

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