fsipc

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FsIpc

type FsIpc struct {
	Requests                     chan interface{}
	GsPlayerScoresRequests       chan interface{}
	GsPlayerLeaderboardsRequests chan interface{}
	RootDir                      string
	// contains filtered or unexported fields
}

func New

func New(rootDir string) (*FsIpc, error)

func (*FsIpc) Close

func (fsipc *FsIpc) Close() error

func (*FsIpc) WriteResponse

func (fsipc *FsIpc) WriteResponse(id string, data interface{}) error

type GsNewSessionRequest

type GsNewSessionRequest struct {
	Id               string `json:"-"`
	ChartHashVersion int    `json:"chartHashVersion" validate:"required"`
}

type GsPlayerLeaderboardsRequest

type GsPlayerLeaderboardsRequest struct {
	Id                    string        `json:"-"`
	MaxLeaderboardResults *int          `json:"maxLeaderboardResults"`
	Player1               *gsPlayerData `json:"player1"`
	Player2               *gsPlayerData `json:"player2"`
}

type GsPlayerScoresRequest

type GsPlayerScoresRequest struct {
	Id      string        `json:"-"`
	Player1 *gsPlayerData `json:"player1"`
	Player2 *gsPlayerData `json:"player2"`
}

type GsScoreSubmitRequest

type GsScoreSubmitRequest struct {
	Id                    string `json:"-"`
	MaxLeaderboardResults *int   `json:"maxLeaderboardResults"`

	Player1 *gsScoreSubmitPlayerData `json:"player1"`
	Player2 *gsScoreSubmitPlayerData `json:"player2"`
}

type JudgmentCounts added in v1.3.0

type JudgmentCounts struct {
	FantasticPlus int  `json:"fantasticPlus" validate:"min=0"`
	Fantastic     int  `json:"fantastic" validate:"min=0"`
	Excellent     int  `json:"excellent" validate:"min=0"`
	Great         int  `json:"great" validate:"min=0"`
	Decent        *int `json:"decent,omitempty"`
	WayOff        *int `json:"wayOff,omitempty"`
	Miss          int  `json:"miss" validate:"min=0"`
	TotalSteps    int  `json:"totalSteps" validate:"min=0"`
	MinesHit      int  `json:"minesHit" validate:"min=0"`
	TotalMines    int  `json:"totalMines" validate:"min=0"`
	HoldsHeld     int  `json:"holdsHeld" validate:"min=0"`
	TotalHolds    int  `json:"totalHolds" validate:"min=0"`
	RollsHeld     int  `json:"rollsHeld" validate:"min=0"`
	TotalRolls    int  `json:"totalRolls" validate:"min=0"`
}

type NetworkResponse

type NetworkResponse struct {
	Status string      `json:"status"`
	Data   interface{} `json:"data"`
}

type PingRequest

type PingRequest struct {
	Id       string `json:"-"`
	Protocol int    `json:"protocol" validate:"required"`
}

type PingResponse

type PingResponse struct {
	Version PingVersion `json:"version"`
}

type PingVersion

type PingVersion struct {
	Major int `json:"major"`
	Minor int `json:"minor"`
	Patch int `json:"patch"`
}

Jump to

Keyboard shortcuts

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