stage

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller consists instance for a type of data

func New

func New() *Controller

New creates a new Controller with its corresponding utils.Cache

func (*Controller) Server

func (c *Controller) Server(server string) (*utils.Cache, *errors.Error)

Server gives utils.Cache of server

func (*Controller) ServerContent

func (c *Controller) ServerContent(server string) ([]*Stage, *errors.Error)

ServerContent gives matrices from utils.Cache of server

func (*Controller) Stage

func (c *Controller) Stage(server string, stageID string) (result *Stage)

Stage returns the Stage found with specified stageID in server

func (*Controller) Status

func (c *Controller) Status(server string) *status.Status

Status gives status.Status of current controller with the status of utils.Cache for server

type Stage

type Stage struct {
	ZoneID       string            `json:"zoneId,omitempty"`
	StageID      string            `json:"stageId,omitempty"`
	CodeI18N     map[string]string `json:"code_i18n,omitempty"`
	ApCost       int               `json:"apCost,omitempty"`
	Existence    models.Existence  `json:"existence"`
	MinClearTime int               `json:"minClearTime,omitempty"`
}

Stage specifies data structure for the stage data type

func (Stage) MarshalJSON added in v1.1.0

func (s Stage) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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