Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MapshotConfigJSON ¶
type MapshotConfigJSON struct {
EncodedPath string `json:"encoded_path"`
}
MapshotConfigJSON is a representation of the viewer configuration.
type MapshotJSON ¶
type MapshotJSON struct {
// Many field omitted that are not used from go.
TicksPlayed int64 `json:"ticks_played,omitempty"`
}
MapshotJSON is a partial representation of the content of mapshot.json.
type RenderFlags ¶
type RenderFlags struct {
// contains filtered or unexported fields
}
RenderFlags holds parameters to the rendering.
func (*RenderFlags) Register ¶
func (rf *RenderFlags) Register(flags *pflag.FlagSet, prefix string) *RenderFlags
Register creates flags for the rendering parameters.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements a server presenting available mapshots and serving their content.
type ShotsJSON ¶
type ShotsJSON struct {
All []*ShotsJSONSave `json:"all"`
}
ShotsJSON is the data sent to the UI to build the listing.
type ShotsJSONInfo ¶
type ShotsJSONInfo struct {
Name string `json:"name,omitempty"`
EncodedPath string `json:"encoded_path,omitempty"`
TicksPlayed int64 `json:"ticks_played,omitempty"`
}
ShotsJSONInfo is part of ShotsJSONSave.
type ShotsJSONSave ¶
type ShotsJSONSave struct {
Savename string `json:"savename"`
Versions []*ShotsJSONInfo `json:"versions"`
}
ShotsJSONSave is part of ShotsJSON.
Click to show internal directories.
Click to hide internal directories.