types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVInfo

type CSVInfo struct {
	Name  string
	Count int
}

CSVInfo represents a map and its entry count

type Config

type Config struct {
	APIKey string `json:"api_key"`
	Tier   string `json:"tier"`
}

Config represents the application configuration

type Map

type Map struct {
	Seed        string `json:"seed"`
	Size        int    `json:"size"`
	SavedConfig string `json:"saved_config,omitempty"`
	Staging     bool   `json:"staging"`
	MapID       string `json:"map_id,omitempty"`
	Status      string `json:"status"`
	LastSync    string `json:"last_sync,omitempty"`
	Filename    string `json:"filename,omitempty"`
}

Map represents a single map configuration

func NewMap

func NewMap(seed string, size int, savedConfig string, staging bool) *Map

func (*Map) MarkSynced

func (m *Map) MarkSynced()

func (*Map) MergeFrom

func (m *Map) MergeFrom(other Map)

func (*Map) ReportStatus

func (m *Map) ReportStatus(status string)

func (*Map) SaveJSON

func (m *Map) SaveJSON(outputDir string) error

func (*Map) SetFilename

func (m *Map) SetFilename()

func (*Map) ShouldSync

func (m *Map) ShouldSync() bool

func (*Map) String

func (m *Map) String() string

Jump to

Keyboard shortcuts

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