p

package module
v0.0.0-...-5417d07 Latest Latest
Warning

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

Go to latest
Published: May 25, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPlayersIDsInRoom

func GetPlayersIDsInRoom(ctx context.Context, tx *firestore.Transaction, client *firestore.Client, roomID string) ([]string, error)

func OnUpdateRoom

func OnUpdateRoom(ctx context.Context, e FirestoreEvent) error

OnUpdateRoom is triggered when a room is updated - Initiates a board when the room is full

Types

type FirestoreEvent

type FirestoreEvent struct {
	OldValue myfirestore.FirestoreValue `json:"oldValue"`
	Value    myfirestore.FirestoreValue `json:"value"`
}

FirestoreEvent is the payload of a Firestore event. Please refer to the docs for additional information regarding Firestore events.

Jump to

Keyboard shortcuts

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