model

package
v0.0.0-...-691a703 Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: MIT Imports: 1 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mod

type Mod struct {
	Owner  string  `json:"owner"`
	Slot   float32 `json:"slot"`
	Type   string  `json:"type"`   // 'FA'mp, 'HS'ink, 'LA'mp, 'SBUL'ink, 'MH'ack, 'PS'hield, 'AXA' Aegis Shield, 'T'urret
	Rarity string  `json:"rarity"` // 'C'ommon, 'R'are, 'VR'  Very Rare
}

type PortalMsg

type PortalMsg struct {
	Home   bool   `json:"home"`
	Status Status `json:"externalApiPortal"`
}

func (*PortalMsg) DeepCopy

func (msg *PortalMsg) DeepCopy() (cpy *PortalMsg)

DeepCopy deepcopies a to b using json marshaling

type PortalStatus

type PortalStatus struct {
	Status Status `json:"externalApiPortal"`
}

type Resonator

type Resonator struct {
	Position string  `json:"position"`
	Level    float32 `json:"level"`
	Health   float32 `json:"health"`
	Owner    string  `json:"owner"`
}

type Status

type Status struct {
	Title         string      `json:"Title"`
	Description   string      `json:"description"`
	CoverImageURL string      `json:"coverImageUrl"`
	Owner         string      `json:"owner"`
	Level         float32     `json:"level"`
	Health        float32     `json:"health"`
	Faction       string      `json:"controllingFaction"` // Will be 'E'nlightened, 'R'esistance, or 'N'eutral
	Mods          []Mod       `json:"mods"`
	Resonators    []Resonator `json:"resonators"`
}

func (*Status) DeepCopy

func (status *Status) DeepCopy() (cpy *Status)

DeepCopy deepcopies a to b using json marshaling

Jump to

Keyboard shortcuts

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