bases

package
v1.106.4 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: AGPL-3.0, AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Affiliation string  `json:"affiliation"`
	Health      float64 `json:"health"`
	Tid         *int    `json:"tid"`
	Name        string  `json:"-"`
	Nickname    string
}

type Config

type Config struct {

	// html.UnescapeString(pob.Base.Name) should be equal to this name
	BasesByHtmlUnescapeName map[string]*Base `json:"bases"`
	BasesByNick             map[string]*Base `json:"-"`
	Timestamp               time.Time        `json:"-"`
	Bases                   []*Base
	// contains filtered or unexported fields
}

func Read

func Read(ctx context.Context, file *file.File) (*Config, error)

func (*Config) Refresh

func (c *Config) Refresh() error

Jump to

Keyboard shortcuts

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