v1

package
Version: v0.0.0-...-31be6ed Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains code for directly interacting with the v1 API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiStruct

type ApiStruct struct {
	AllCities []Cities
	// contains filtered or unexported fields
}

ApiStruct is the struct type that stores the result of every api result.

type ApiType

type ApiType uint8
const (
	Error     ApiType = iota
	AllCities ApiType = iota
	Alliance  ApiType = iota
)

type Cities

type Cities struct {
	NationID int
	CityID   int
	CityName string
	Capital  bool
	Infra    float64
	MaxInfra float64
	Land     float64
}

Cities is part of the result of the /all-cities API.

Jump to

Keyboard shortcuts

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