events

package
v0.0.0-...-4f1356e Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityKeyModel

type EntityKeyModel struct {
	// Id unique ID of the entity.
	Id string `json:"Id,omitempty"`
	// Type entity type. See https://api.playfab.com/docs/tutorials/entities/entitytypes
	Type string `json:"Type,omitempty"`
}

EntityKey combined entity type and ID structure which uniquely identifies a single entity.

type EventContentsModel

type EventContentsModel struct {
	// Entity entity associated with the event. If null, the event will apply to the calling entity.
	Entity EntityKeyModel `json:"Entity,omitempty"`
	// EventNamespace the namespace in which the event is defined. It must begin with 'com.playfab.events.'
	EventNamespace string `json:"EventNamespace,omitempty"`
	// Name the name of this event.
	Name string `json:"Name,omitempty"`
	// OriginalId the original unique identifier associated with this event before it was posted to PlayFab. The value might differ from
	// the EventId value, which is assigned when the event is received by the server.
	OriginalId string `json:"OriginalId,omitempty"`
	// OriginalTimestamp the time (in UTC) associated with this event when it occurred. If specified, this value is stored in the
	// OriginalTimestamp property of the PlayStream event.
	OriginalTimestamp time.Time `json:"OriginalTimestamp,omitempty"`
	// Payload arbitrary data associated with the event. Only one of Payload or PayloadJSON is allowed.
	Payload interface{} `json:"Payload,omitempty"`
	// PayloadJSON arbitrary data associated with the event, represented as a JSON serialized string. Only one of Payload or PayloadJSON is
	// allowed.
	PayloadJSON string `json:"PayloadJSON,omitempty"`
}

EventContents

type WriteEventsRequestModel

type WriteEventsRequestModel struct {
	// Events collection of events to write to PlayStream.
	Events []EventContentsModel `json:"Events,omitempty"`
}

WriteEventsRequest

type WriteEventsResponseModel

type WriteEventsResponseModel struct {
	// AssignedEventIds the unique identifiers assigned by the server to the events, in the same order as the events in the request. Only
	// returned if FlushToPlayStream option is true.
	AssignedEventIds []string `json:"AssignedEventIds,omitempty"`
}

WriteEventsResponse

func WriteEvents

func WriteEvents(settings *playfab.Settings, postData *WriteEventsRequestModel, entityToken string) (*WriteEventsResponseModel, error)

WriteEvents write batches of entity based events to PlayStream. https://api.playfab.com/Documentation/Events/method/WriteEvents

func WriteTelemetryEvents

func WriteTelemetryEvents(settings *playfab.Settings, postData *WriteEventsRequestModel, entityToken string) (*WriteEventsResponseModel, error)

WriteTelemetryEvents write batches of entity based events to as Telemetry events (bypass PlayStream). https://api.playfab.com/Documentation/Events/method/WriteTelemetryEvents

Jump to

Keyboard shortcuts

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