models

package
v0.0.0-...-bbfb983 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GCP_PROJECT_ID   = "prj-zeld-gke"
	SPANNER_INSTANCE = "spaceagon-demo"
	SPANNER_DATABASE = "spaceagon-db-demo"
)

Variables

This section is empty.

Functions

func ConnectDatabase

func ConnectDatabase(ctx context.Context) (client *spanner.Client)

Types

type GameEvent

type GameEvent struct {
	EventId   string
	PlayerId  int64
	EventType string
	Timestamp int64
	Data      interface{}
}

type Player

type Player struct {
	Name  string `json:"name"`
	Score int64  `json:"score"`
}

Jump to

Keyboard shortcuts

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