server

package
v0.3.26 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 51 Imported by: 0

Documentation

Overview

Package server implements the web service for Spy Cards Online.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main()

Main is the main method for the Spy Cards Online web service.

Types

type CustomExtensions added in v0.3.3

type CustomExtensions struct {
	Stages []CustomStage `json:"s"`
	Music  []CustomMusic `json:"m"`
}

type CustomMusic added in v0.3.3

type CustomMusic struct {
	ID    int64                  `json:"-"`
	Name  string                 `json:"n"`
	CID   card.ContentIdentifier `json:"c"`
	Start float32                `json:"s"`
	End   float32                `json:"e"`
}

type CustomStage added in v0.3.3

type CustomStage struct {
	ID   int64                  `json:"-"`
	Name string                 `json:"n"`
	CID  card.ContentIdentifier `json:"c"`
}

type GameMode

type GameMode struct {
	ID     int64          `json:"-"`
	Prefix sql.NullString `json:"-"`
	match.AvailableMode
}

GameMode is a community-owned Spy Cards Online custom game mode.

type User

type User struct {
	ID        int64
	LoginName string

	SessionReset int
	IsAdmin      bool
	// contains filtered or unexported fields
}

User is a Spy Cards Online user account.

Jump to

Keyboard shortcuts

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