app

package
v0.76.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 45 Imported by: 0

Documentation

Overview

Package app is the root package of all domain related packages.

All entity types are defined in this package.

Index

Constants

View Source
const (
	DateTimeFormat            = "2006.01.02 15:04"
	DateTimeFormatWithSeconds = "2006.01.02 15:04:05"
	DateFormat                = "2006.01.02"
	DateTimeFormatESI         = "2006-01-02T15:04:05Z"
)

Default formats and sizes

View Source
const (
	PinTypeAdvancedProcessor = "Advanced Processor"
	PinTypeBasicProcessor    = "Basic Processor"
	PinTypeCommandCenter     = "Command Center"
	PinTypeExtractor         = "Extractor"
	PinTypeHighTechProcessor = "High-Tech Processor"
	PinTypeLaunchpad         = "Launchpad"
	PinTypeStorage           = "Storage"
)

Short type names of planet pins.

View Source
const (
	EveCategoryBlueprint  = 9
	EveCategoryDeployable = 22
	EveCategoryDrone      = 18
	EveCategoryFighter    = 87
	EveCategoryMineral    = 4
	EveCategoryOrbitals   = 46
	EveCategoryShip       = 6
	EveCategorySkill      = 16
	EveCategorySKINs      = 91
	EveCategoryStarbase   = 23
	EveCategoryStation    = 3
	EveCategoryStructure  = 65
)
View Source
const (
	EveGroupAuditLogSecureContainer = 448
	EveGroupBiomass                 = 3779
	EveGroupBlackOps                = 898
	EveGroupCapitalIndustrialShip   = 883
	EveGroupCargoContainer          = 12
	EveGroupCarrier                 = 547
	EveGroupCharacter               = 1
	EveGroupCommandCenters          = 1027
	EveGroupDreadnought             = 485
	EveGroupExtractorControlUnits   = 1063
	EveGroupForceAuxiliary          = 1538
	EveGroupFreightContainer        = 649
	EveGroupJumpFreighter           = 902
	EveGroupPlanet                  = 7
	EveGroupProcessors              = 1028
	EveGroupSecureCargoContainer    = 340
	EveGroupSpaceports              = 1030
	EveGroupStation                 = 15
	EveGroupStorageFacilities       = 1029
	EveGroupSuperCarrier            = 659
	EveGroupTitan                   = 30
)
View Source
const (
	EveTypeAdvancedContracting         = 73912
	EveTypeAdvancedLaboratoryOperation = 24624
	EveTypeAdvancedMassProduction      = 24625
	EveTypeAdvancedMassReactions       = 45749
	EveTypeAlliance                    = 16159
	EveTypeAssetSafetyWrap             = 60
	EveTypeAstroidBelt                 = 9
	EveTypeCaldariLogisticsStation     = 54
	EveTypeCharacter                   = 1373
	EveTypeConstellation               = 4
	EveTypeContracting                 = 25235
	EveTypeCorporation                 = 2
	EveTypeCorporationContracting      = 25233
	EveTypeCustomsOffice               = 2233
	EveTypeFaction                     = 19
	EveTypeIHUB                        = 32458
	EveTypeIndustry                    = 3380
	EveTypeInfomorphSynchronizing      = 33399
	EveTypeInterplanetaryConsolidation = 2495
	EveTypeLaboratoryOperation         = 3406
	EveTypeLargeSkillInjector          = 40520
	EveTypeMassProduction              = 3387
	EveTypeMassReactions               = 45748
	EveTypeMoon                        = 8
	EveTypeOffice                      = 27
	EveTypePlanetTemperate             = 11
	EveTypeRegion                      = 3
	EveTypeSkillExtractor              = 40519
	EveTypeSolarSystem                 = 5
	EveTypeTCU                         = 32226
)
View Source
const (
	EveDogmaAttributeArmorEMDamageResistance             = 267
	EveDogmaAttributeArmorExplosiveDamageResistance      = 268
	EveDogmaAttributeArmorHitpoints                      = 265
	EveDogmaAttributeArmorKineticDamageResistance        = 269
	EveDogmaAttributeArmorThermalDamageResistance        = 270
	EveDogmaAttributeCalibration                         = 1132
	EveDogmaAttributeCapacitorCapacity                   = 482
	EveDogmaAttributeCapacitorRechargeTime               = 55
	EveDogmaAttributeCapacitorWarfareResistance          = 2045
	EveDogmaAttributeCapacitorWarfareResistanceBonus     = 2267
	EveDogmaAttributeCapacity                            = 38
	EveDogmaAttributeCargoScanResistance                 = 188
	EveDogmaAttributeCharisma                            = 164
	EveDogmaAttributeCPUOutput                           = 48
	EveDogmaAttributeCPUusage                            = 50
	EveDogmaAttributeDroneBandwidth                      = 1271
	EveDogmaAttributeDroneCapacity                       = 283
	EveDogmaAttributeECMResistance                       = 2253
	EveDogmaAttributeEntosisAssistanceImpedance          = 2754
	EveDogmaAttributeFighterHangarCapacity               = 2055
	EveDogmaAttributeFighterSquadronLaunchTubes          = 2216
	EveDogmaAttributeFuelBayCapacity                     = 1549
	EveDogmaAttributeGravimetricSensorStrength           = 211
	EveDogmaAttributeHeavyFighterSquadronLimit           = 2219
	EveDogmaAttributeHighSlots                           = 14
	EveDogmaAttributeHullEmDamageResistance              = 974
	EveDogmaAttributeHullExplosiveDamageResistance       = 975
	EveDogmaAttributeHullKinDamageResistance             = 976
	EveDogmaAttributeHullThermDamageResistance           = 977
	EveDogmaAttributeImplantSlot                         = 331
	EveDogmaAttributeInertiaModifier                     = 70
	EveDogmaAttributeInertiaMultiplier                   = 70
	EveDogmaAttributeIntelligence                        = 165
	EveDogmaAttributeJumpDriveCapacitorNeed              = 898
	EveDogmaAttributeJumpDriveConsumptionAmount          = 868
	EveDogmaAttributeJumpDriveFuelNeed                   = 866
	EveDogmaAttributeLadarSensorStrength                 = 209
	EveDogmaAttributeLauncherHardpoints                  = 101
	EveDogmaAttributeLightFighterSquadronLimit           = 2217
	EveDogmaAttributeLowSlots                            = 12
	EveDogmaAttributeMagnetometricSensorStrength         = 210
	EveDogmaAttributeMass                                = 4
	EveDogmaAttributeMaximumJumpRange                    = 867
	EveDogmaAttributeMaximumLockedTargets                = 192
	EveDogmaAttributeMaximumTargetingRange               = 76
	EveDogmaAttributeMaximumVelocity                     = 37
	EveDogmaAttributeMaxVelocity                         = 37
	EveDogmaAttributeMediumSlots                         = 13
	EveDogmaAttributeMemory                              = 166
	EveDogmaAttributeMetaLevel                           = 633
	EveDogmaAttributeOnboardJumpDrive                    = 861
	EveDogmaAttributePerception                          = 167
	EveDogmaAttributePowergridOutput                     = 11
	EveDogmaAttributePowergridUsage                      = 30
	EveDogmaAttributePrimaryAttribute                    = 180
	EveDogmaAttributePrimarySkillID                      = 182
	EveDogmaAttributePrimarySkillLevel                   = 277
	EveDogmaAttributeQuaternarySkillID                   = 1285
	EveDogmaAttributeQuaternarySkillLevel                = 1286
	EveDogmaAttributeQuinarySkillID                      = 1289
	EveDogmaAttributeQuinarySkillLevel                   = 1287
	EveDogmaAttributeRADARSensorStrength                 = 208
	EveDogmaAttributeRemoteElectronicAssistanceImpedance = 2135
	EveDogmaAttributeRemoteLogisticsImpedance            = 2116
	EveDogmaAttributeReprocessingSkillType               = 790
	EveDogmaAttributeRequiredSkill1                      = 182
	EveDogmaAttributeRigSlots                            = 1154
	EveDogmaAttributeServiceSlots                        = 2056
	EveDogmaAttributeScanResolution                      = 564
	EveDogmaAttributeSecondaryAttribute                  = 181
	EveDogmaAttributeSecondarySkillID                    = 183
	EveDogmaAttributeSecondarySkillLevel                 = 278
	EveDogmaAttributeSenarySkillID                       = 1290
	EveDogmaAttributeSenarySkillLevel                    = 1288
	EveDogmaAttributeSensorWarfareResistance             = 2112
	EveDogmaAttributeShieldCapacity                      = 263
	EveDogmaAttributeShieldEMDamageResistance            = 271
	EveDogmaAttributeShieldExplosiveDamageResistance     = 272
	EveDogmaAttributeShieldKineticDamageResistance       = 273
	EveDogmaAttributeShieldRechargeTime                  = 479
	EveDogmaAttributeShieldThermalDamageResistance       = 274
	EveDogmaAttributeShipWarpSpeed                       = 1281
	EveDogmaAttributeSignatureRadius                     = 552
	EveDogmaAttributeStasisWebifierResistance            = 2115
	EveDogmaAttributeStasisWebifierResistanceBonus       = 3422
	EveDogmaAttributeStructureEMDamageResistance         = 113
	EveDogmaAttributeStructureExplosiveDamageResistance  = 111
	EveDogmaAttributeStructureHitpoints                  = 9
	EveDogmaAttributeStructureKineticDamageResistance    = 109
	EveDogmaAttributeStructureThermalDamageResistance    = 110
	EveDogmaAttributeSupportFighterSquadronLimit         = 2218
	EveDogmaAttributeTargetPainterResistance             = 2114
	EveDogmaAttributeTechLevel                           = 422
	EveDogmaAttributeTertiarySkillID                     = 184
	EveDogmaAttributeTertiarySkillLevel                  = 279
	EveDogmaAttributeTurretHardpoints                    = 102
	EveDogmaAttributeWarpSpeedMultiplier                 = 600
	EveDogmaAttributeWeaponDisruptionResistance          = 2113
	EveDogmaAttributeWillpower                           = 168
	EveDogmaAttributeCharismaModifier                    = 175
	EveDogmaAttributeIntelligenceModifier                = 176
	EveDogmaAttributeMemoryModifier                      = 177
	EveDogmaAttributePerceptionModifier                  = 178
	EveDogmaAttributeWillpowerModifier                   = 179
	EveDogmaAttributeTrainingTimeMultiplier              = 275
)
View Source
const (
	MailLabelAll      = 1<<31 - 1
	MailLabelNone     = 0
	MailLabelInbox    = 1
	MailLabelSent     = 2
	MailLabelCorp     = 4
	MailLabelAlliance = 8
)

Special mail label IDs

View Source
const (
	EveUniverseSectionEntityID   = 1
	EveUniverseSectionEntityName = "Eve Universe"
)

Entity ID for general sections

View Source
const ColonyForecastHorizon = 30 * 24 * time.Hour

ColonyForecastHorizon is how far ahead a forecast looks for when a colony stops working.

View Source
const (
	UnknownLocationID = 888 // custom ID to signify a location that is not known

)

Variables

View Source
var (
	ErrAlreadyExists = errors.New("object already exists")
	ErrCanceled      = errors.New("operation canceled")
	ErrInvalid       = errors.New("invalid parameters")
	ErrNotFound      = errors.New("object not found")
)

App errors

ContractCategoriesOpen defines which categories are considered open.

ContractStatusActive defines which status is considered active.

View Source
var (
	ErrTokenError = errors.New("token error")
)
View Source
var IndustryJobStatusActive = set.Of(JobActive, JobReady, JobPaused)

IndustryJobStatusActive defines which status is considered active.

StructureStateReinforced defines which state is considered reinforced.

Functions

func ErrorDisplay added in v0.27.0

func ErrorDisplay(err error) string

ErrorDisplay returns a user friendly error message for an error.

func IsContextCanceled added in v0.76.0

func IsContextCanceled(ctx context.Context, err error) bool

IsContextCanceled reports whether the context is canceled or err is from a canceled operation.

func IsErrorCanceled added in v0.76.0

func IsErrorCanceled(err error) bool

IsErrorCanceled reports whether err is from a canceled operation.

func IsNPCCharacter added in v0.47.0

func IsNPCCharacter(id int64) bool

IsNPCCharacter reports whether an entity ID represents a NPC character.

func IsNPCCorporation added in v0.47.0

func IsNPCCorporation(id int64) bool

IsNPCCorporation reports whether an entity ID represents a NPC corporation.

func NotificationGroupTypes added in v0.41.0

func NotificationGroupTypes(g EveNotificationGroup) set.Set[EveNotificationType]

NotificationGroupTypes returns the types of a EveNotificationGroup.

func NotificationTypesSupported added in v0.41.0

func NotificationTypesSupported() set.Set[EveNotificationType]

NotificationTypesSupported returns all supported notification types.

func RolesAll added in v0.40.0

func RolesAll() iter.Seq[Role]

func Scopes added in v0.35.0

func Scopes() set.Set[string]

Scopes returns all required ESI scopes.

func VariableDateFormat added in v0.15.0

func VariableDateFormat(t time.Time) string

VariableDateFormat returns a variable format for time.Time values.

Types

type Asset added in v0.57.0

type Asset struct {
	IsBlueprintCopy optional.Optional[bool]
	IsSingleton     bool
	ItemID          int64
	LocationFlag    LocationFlag
	LocationID      int64
	LocationType    LocationType
	Name            string
	Price           optional.Optional[float64]
	Quantity        int
	Type            *EveType
}

Asset represents a generic asset in EVE Online.

func (Asset) CanHaveName added in v0.57.0

func (ca Asset) CanHaveName() bool

func (Asset) DisplayName added in v0.57.0

func (ca Asset) DisplayName() string

func (Asset) DisplayName2 added in v0.57.0

func (ca Asset) DisplayName2() string

func (Asset) DisplayName3 added in v0.57.0

func (ca Asset) DisplayName3() string

func (Asset) ID added in v0.57.0

func (ca Asset) ID() int64

ID returns the item ID.

func (Asset) IsBPO added in v0.57.0

func (ca Asset) IsBPO() bool

func (Asset) IsContainer added in v0.57.0

func (ca Asset) IsContainer() bool

func (Asset) IsSKIN added in v0.57.0

func (ca Asset) IsSKIN() bool

func (Asset) LocationCategory added in v0.57.0

func (ca Asset) LocationCategory() LocationFlag

func (Asset) TypeName added in v0.57.0

func (ca Asset) TypeName() string

func (Asset) Unwrap added in v0.57.0

func (ca Asset) Unwrap() Asset

func (Asset) Variant added in v0.57.0

func (ca Asset) Variant() InventoryTypeVariant

type CacheSectionStatus added in v0.35.0

type CacheSectionStatus struct {
	Comment      string
	CompletedAt  time.Time
	ContentHash  string
	EntityID     int64
	EntityName   string
	ErrorMessage string
	SectionID    string
	SectionName  string
	StartedAt    time.Time
	Timeout      time.Duration
}

func (CacheSectionStatus) Display added in v0.36.0

func (ss CacheSectionStatus) Display() (string, widget.Importance)

func (CacheSectionStatus) HasComment added in v0.35.0

func (ss CacheSectionStatus) HasComment() bool

func (CacheSectionStatus) HasError added in v0.35.0

func (ss CacheSectionStatus) HasError() bool

func (CacheSectionStatus) IsCurrent added in v0.35.0

func (ss CacheSectionStatus) IsCurrent() bool

func (CacheSectionStatus) IsExpired added in v0.35.0

func (ss CacheSectionStatus) IsExpired() bool

func (CacheSectionStatus) IsMissing added in v0.35.0

func (ss CacheSectionStatus) IsMissing() bool

func (CacheSectionStatus) IsRunning added in v0.35.0

func (ss CacheSectionStatus) IsRunning() bool

type Character

type Character struct {
	AssetValue         optional.Optional[float64] // value of character assets
	ContractItemsValue optional.Optional[float64]
	ContractsEscrow    optional.Optional[float64]
	EveCharacter       *EveCharacter
	HomeLocationID     optional.Optional[int64]
	ID                 int64
	IsTrainingWatched  bool
	LastCloneJumpAt    optional.Optional[time.Time]
	LastLoginAt        optional.Optional[time.Time]
	LocationID         optional.Optional[int64]
	OrderItemsValue    optional.Optional[float64]
	OrdersEscrow       optional.Optional[float64]
	ShipTypeID         optional.Optional[int64]
	SkillPointsValue   optional.Optional[float64]
	TrainedSP          optional.Optional[int64]
	UnallocatedSP      optional.Optional[int64]
	WalletBalance      optional.Optional[float64]
	// Calculated fields
	NextCloneJump optional.Optional[time.Time] // zero time == now
}

Character is an EVE Online character owned by the user.

func (*Character) CombinedAssetsValue added in v0.65.0

func (c *Character) CombinedAssetsValue() optional.Optional[float64]

CombinedAssetsValue returns the combined assets estimated value.

This is the total sum of the estimated market price of a character's assets. This includes any items that the player owns in Stations or Upwell Structures, items located in outstanding sell orders on the market or contracts, and those in a character's Asset Safety. Blueprints do not count towards a character‘s Total Net Worth. Source: Total Net Worth of a character as defined by CCP.

func (*Character) IDOrZero added in v0.63.0

func (c *Character) IDOrZero() int64

func (*Character) NameOrZero added in v0.63.0

func (c *Character) NameOrZero() string

type CharacterActiveSkillLevel added in v0.29.0

type CharacterActiveSkillLevel struct {
	CharacterID int64
	Level       int
	TypeID      int64
}

CharacterActiveSkillLevel represents the active level of a character's skill.

type CharacterAsset

type CharacterAsset struct {
	Asset
	CharacterID int64
}

type CharacterAttributes

type CharacterAttributes struct {
	ID            int64
	BonusRemaps   optional.Optional[int64]
	CharacterID   int64
	Charisma      int64
	Intelligence  int64
	LastRemapDate optional.Optional[time.Time]
	Memory        int64
	Perception    int64
	Willpower     int64
}

type CharacterContact added in v0.63.0

type CharacterContact struct {
	CharacterID int64
	Contact     *EveEntity
	IsBlocked   optional.Optional[bool]
	IsWatched   optional.Optional[bool]
	Labels      set.Set[string]
	Standing    float64
}

type CharacterContactLabel added in v0.63.0

type CharacterContactLabel struct {
	CharacterID int64
	LabelID     int64
	Name        string
}

type CharacterContract added in v0.11.0

type CharacterContract struct {
	ID                int64
	Acceptor          optional.Optional[*EveEntity]
	Assignee          optional.Optional[*EveEntity]
	Availability      ContractAvailability
	Buyout            optional.Optional[float64]
	CharacterID       int64
	Collateral        optional.Optional[float64]
	ContractID        int64
	DateAccepted      optional.Optional[time.Time]
	DateCompleted     optional.Optional[time.Time]
	DateExpired       time.Time
	DateIssued        time.Time
	DaysToComplete    optional.Optional[int64]
	EndLocation       optional.Optional[*EveLocationShort]
	EndSolarSystem    optional.Optional[*EntityShort] // TODO: Convert to EveEntity
	ForCorporation    bool
	Issuer            *EveEntity
	IssuerCorporation *EveEntity
	Items             []string
	Price             optional.Optional[float64]
	Reward            optional.Optional[float64]
	StartLocation     optional.Optional[*EveLocationShort]
	StartSolarSystem  optional.Optional[*EntityShort] // TODO: Convert to EveEntity
	Status            ContractStatus
	StatusNotified    ContractStatus
	Title             optional.Optional[string]
	Type              ContractType
	UpdatedAt         time.Time
	Volume            optional.Optional[float64]
}

func (CharacterContract) Category added in v0.76.0

func (cs CharacterContract) Category() ContractCategory

func (CharacterContract) IsExpired added in v0.11.0

func (cs CharacterContract) IsExpired() bool

func (CharacterContract) IssuerEffective added in v0.22.0

func (cs CharacterContract) IssuerEffective() *EveEntity

func (CharacterContract) NameDisplay added in v0.11.0

func (cs CharacterContract) NameDisplay() string

type CharacterContractBid added in v0.11.0

type CharacterContractBid struct {
	ContractID int64
	Amount     float64
	BidID      int64
	Bidder     *EveEntity
	DateBid    time.Time
}

type CharacterContractItem added in v0.11.0

type CharacterContractItem struct {
	ContractID  int64
	IsIncluded  bool
	IsSingleton bool
	Quantity    int64
	RawQuantity optional.Optional[int64]
	RecordID    int64
	Type        *EveType
}

type CharacterContractSlots added in v0.70.0

type CharacterContractSlots struct {
	CharacterID     int64
	CharacterName   string
	CorporationID   int64
	CorporationName string
	Free            int
	IsCorporation   bool
	Total           int
	Used            int
}

CharacterContractSlots represents counts of contract slots for a character.

type CharacterImplant

type CharacterImplant struct {
	CharacterID int64
	EveType     *EveType
	ID          int64
	SlotNum     int // 0 = unknown
}

type CharacterIndustryJob added in v0.23.0

type CharacterIndustryJob struct {
	Activity           IndustryActivity
	BlueprintID        int64
	BlueprintLocation  *EveLocationShort
	BlueprintType      *EntityShort
	CharacterID        int64
	CompletedCharacter optional.Optional[*EveEntity]
	CompletedDate      optional.Optional[time.Time]
	Cost               optional.Optional[float64]
	Duration           int
	EndDate            time.Time
	Facility           *EveLocationShort
	ID                 int64
	Installer          *EveEntity
	JobID              int64
	LicensedRuns       optional.Optional[int]
	OutputLocation     *EveLocationShort
	PauseDate          optional.Optional[time.Time]
	Probability        optional.Optional[float32]
	ProductType        optional.Optional[*EntityShort] // TODO: should be EveEntity
	Runs               int
	StartDate          time.Time
	Station            *EveLocationShort
	Status             IndustryJobStatus
	SuccessfulRuns     optional.Optional[int64]
}

type CharacterIndustrySlots added in v0.29.0

type CharacterIndustrySlots struct {
	Busy          int
	CharacterID   int64
	CharacterName string
	Free          int
	Ready         int
	Total         int
	Type          IndustryJobType
}

CharacterIndustrySlots represents counts of industry slots for a character.

type CharacterJumpClone

type CharacterJumpClone struct {
	CharacterID int64
	ID          int64
	Implants    []*CharacterJumpCloneImplant
	CloneID     int64
	Location    *EveLocationShort
	Name        optional.Optional[string]
	Region      *EntityShort
}

type CharacterJumpClone2 added in v0.18.0

type CharacterJumpClone2 struct {
	Character     *EntityShort
	ImplantsCount int
	ID            int64
	CloneID       int64
	Location      *EveLocation
}

type CharacterJumpCloneImplant

type CharacterJumpCloneImplant struct {
	ID      int64
	EveType *EveType
	SlotNum int // 0 = unknown
}

type CharacterLoyaltyPointEntry added in v0.60.0

type CharacterLoyaltyPointEntry struct {
	ID            int64
	CharacterID   int64
	Corporation   *EntityShort
	Faction       optional.Optional[*EveEntity]
	LoyaltyPoints int64
}

type CharacterMail

type CharacterMail struct {
	Body        optional.Optional[string]
	CharacterID int64
	From        *EveEntity
	Labels      []*CharacterMailLabel
	IsProcessed bool
	IsRead      optional.Optional[bool]
	ID          int64
	MailID      int64
	Recipients  []*EveEntity
	Subject     optional.Optional[string]
	Timestamp   time.Time
}

CharacterMail is an EVE mail belonging to a character.

func (CharacterMail) BodyPlain

func (cm CharacterMail) BodyPlain() string

BodyPlain returns a mail's body as plain text.

func (CharacterMail) BodyToMarkdown

func (cm CharacterMail) BodyToMarkdown() string

func (CharacterMail) Header added in v0.5.0

func (cm CharacterMail) Header() string

Header returns a mail's header as string.

func (CharacterMail) LabelIDs added in v0.51.0

func (cm CharacterMail) LabelIDs() []int64

func (CharacterMail) RecipientNames

func (cm CharacterMail) RecipientNames() []string

RecipientNames returns the names of the recipients.

func (CharacterMail) String added in v0.5.0

func (cm CharacterMail) String() string

String returns a mail's content as string.

type CharacterMailHeader

type CharacterMailHeader struct {
	CharacterID int64
	From        *EveEntity
	IsRead      bool
	ID          int64
	MailID      int64
	Subject     string
	Timestamp   time.Time
}

CharacterMailHeader is an EVE mail header belonging to a character.

type CharacterMailLabel

type CharacterMailLabel struct {
	ID          int64
	CharacterID int64
	Color       optional.Optional[string]
	LabelID     int64
	Name        optional.Optional[string]
	UnreadCount optional.Optional[int64]
}

CharacterMailLabel is a mail label for an EVE mail belonging to a character.

type CharacterMarketOrder added in v0.41.0

type CharacterMarketOrder struct {
	CharacterID   int64
	Duration      int64
	Escrow        optional.Optional[float64]
	IsBuyOrder    optional.Optional[bool]
	IsCorporation bool
	Issued        time.Time
	Location      *EveLocationShort
	MinVolume     optional.Optional[int64]
	OrderID       int64
	Owner         *EveEntity
	Price         float64
	Range         string
	Region        *EntityShort
	State         MarketOrderState
	Type          *EntityShort
	VolumeRemains int64
	VolumeTotal   int64
}

type CharacterNotification

type CharacterNotification struct {
	ID             int64
	Body           optional.Optional[string] // generated body text in markdown
	CharacterID    int64
	IsProcessed    bool
	IsRead         bool
	NotificationID int64
	Recipient      optional.Optional[*EveEntity]
	Sender         *EveEntity
	Text           optional.Optional[string]
	Timestamp      time.Time
	Title          optional.Optional[string] // generated title text in markdown
	Type           EveNotificationType
}

func (*CharacterNotification) BodyPlain added in v0.5.0

func (cn *CharacterNotification) BodyPlain() (optional.Optional[string], error)

BodyPlain returns the body of a notification as plain text.

func (*CharacterNotification) TitleDisplay

func (cn *CharacterNotification) TitleDisplay() string

TitleDisplay returns the rendered title when it exists or else the fake tile.

func (*CharacterNotification) TitleFake

func (cn *CharacterNotification) TitleFake() string

TitleFake returns a title for output made from the name of the type.

func (*CharacterNotification) ToJSON added in v0.69.0

func (cn *CharacterNotification) ToJSON() ([]byte, error)

type CharacterPlanet added in v0.8.0

type CharacterPlanet struct {
	ID           int64
	CharacterID  int64
	EvePlanet    *EvePlanet
	LastUpdate   time.Time
	LastNotified optional.Optional[time.Time] // last update of the snapshot that was last notified
	Pins         []*PlanetPin
	Routes       []*PlanetRoute
	UpgradeLevel int64
}

CharacterPlanet is a PI colony of a character.

func (CharacterPlanet) ActiveExtractors added in v0.23.0

func (cp CharacterPlanet) ActiveExtractors() iter.Seq[*PlanetPin]

func (CharacterPlanet) ActiveProducers added in v0.23.0

func (cp CharacterPlanet) ActiveProducers() iter.Seq[*PlanetPin]

func (CharacterPlanet) ExtractedTypes added in v0.8.0

func (cp CharacterPlanet) ExtractedTypes() []*EveType

ExtractedTypes returns a list of unique types currently being extracted.

func (CharacterPlanet) Fingerprint added in v0.76.0

func (cp CharacterPlanet) Fingerprint() uint64

Fingerprint returns a hash of the colony data received from ESI. Colonies with the same fingerprint have the same forecast. Only valid within the running process.

func (CharacterPlanet) NameRichText added in v0.23.0

func (cp CharacterPlanet) NameRichText() []widget.RichTextSegment

func (CharacterPlanet) PinName added in v0.76.0

func (cp CharacterPlanet) PinName(p *PlanetPin) string

PinName returns the name of a pin, e.g. "Extractor H6-3IS".

func (CharacterPlanet) PinTypeName added in v0.76.0

func (cp CharacterPlanet) PinTypeName(p *PlanetPin) string

PinTypeName returns the short type name of a pin, e.g. "Extractor". Unknown types return their name without the planet type.

func (CharacterPlanet) ProducedSchematics added in v0.8.0

func (cp CharacterPlanet) ProducedSchematics() []*EveSchematic

ProducedSchematics returns a list of unique schematics currently in production.

func (CharacterPlanet) TypeGroupNames added in v0.76.0

func (cp CharacterPlanet) TypeGroupNames() map[int64]string

TypeGroupNames returns the group names of all types known to a colony by type ID. Types without a group are omitted.

func (CharacterPlanet) TypeNames added in v0.76.0

func (cp CharacterPlanet) TypeNames() map[int64]string

TypeNames returns the names of all types known to a colony by type ID.

func (CharacterPlanet) TypeVolumes added in v0.76.0

func (cp CharacterPlanet) TypeVolumes() map[int64]float64

TypeVolumes returns the volumes of all types known to a colony by type ID.

type CharacterRole added in v0.26.0

type CharacterRole struct {
	CharacterID int64
	Role        Role
	Granted     bool
}

type CharacterSection

type CharacterSection string

CharacterSection represents a topic of a character that can be updated from ESI.

const (
	SectionCharacterAssets             CharacterSection = "assets"
	SectionCharacterAttributes         CharacterSection = "attributes"
	SectionCharacterContacts           CharacterSection = "contacts"
	SectionCharacterContactLabels      CharacterSection = "contact_labels"
	SectionCharacterContracts          CharacterSection = "contracts"
	SectionCharacterImplants           CharacterSection = "implants"
	SectionCharacterIndustryJobs       CharacterSection = "industry_jobs"
	SectionCharacterJumpClones         CharacterSection = "jump_clones"
	SectionCharacterLocation           CharacterSection = "location"
	SectionCharacterLoyaltyPoints      CharacterSection = "loyalty_points"
	SectionCharacterMailHeaders        CharacterSection = "mail_headers"
	SectionCharacterMailLabels         CharacterSection = "mail_labels"
	SectionCharacterMailLists          CharacterSection = "mail_lists"
	SectionCharacterMarketOrders       CharacterSection = "market_orders"
	SectionCharacterNotifications      CharacterSection = "notifications"
	SectionCharacterOnline             CharacterSection = "online"
	SectionCharacterPlanets            CharacterSection = "planets"
	SectionCharacterRoles              CharacterSection = "roles"
	SectionCharacterShip               CharacterSection = "ship"
	SectionCharacterSkillqueue         CharacterSection = "skillqueue"
	SectionCharacterSkills             CharacterSection = "skills"
	SectionCharacterWalletBalance      CharacterSection = "wallet_balance"
	SectionCharacterWalletJournal      CharacterSection = "wallet_journal"
	SectionCharacterWalletTransactions CharacterSection = "wallet_transactions"
)

func (CharacterSection) DisplayName

func (cs CharacterSection) DisplayName() string

func (CharacterSection) Scopes added in v0.35.0

func (cs CharacterSection) Scopes() set.Set[string]

func (CharacterSection) String added in v0.35.0

func (cs CharacterSection) String() string

func (CharacterSection) Timeout

func (cs CharacterSection) Timeout() time.Duration

type CharacterSectionStatus

type CharacterSectionStatus struct {
	SectionStatus
	CharacterID   int64
	CharacterName string
}

CharacterSectionStatus represents the status for a character's section.

type CharacterSectionUpdateParams added in v0.41.0

type CharacterSectionUpdateParams struct {
	CharacterID int64
	ForceUpdate bool
	Section     CharacterSection
}

type CharacterSectionUpdated added in v0.63.0

type CharacterSectionUpdated struct {
	CharacterID  int64
	Section      CharacterSection
	NeedsRefresh bool
}

type CharacterServiceSkillqueue added in v0.17.0

type CharacterServiceSkillqueue interface {
	ListSkillqueueItems(context.Context, int64) ([]*CharacterSkillqueueItem, error)
}

type CharacterShipAbility

type CharacterShipAbility struct {
	Type   EntityShort
	Group  EntityShort
	CanFly bool
}

type CharacterShipSkill

type CharacterShipSkill struct {
	ActiveSkillLevel  optional.Optional[int]
	ID                int64
	CharacterID       int64
	Rank              uint
	ShipTypeID        int64
	SkillTypeID       int64
	SkillName         string
	SkillLevel        uint
	TrainedSkillLevel optional.Optional[int]
}

type CharacterSkill

type CharacterSkill struct {
	ActiveSkillLevel   int64
	CharacterID        int64
	SkillPointsInSkill int64
	TrainedSkillLevel  int64
	Type               *EveType
}

type CharacterSkill2 added in v0.61.0

type CharacterSkill2 struct {
	ActiveSkillLevel   int64
	CharacterID        int64
	HasPrerequisites   bool
	Skill              *EveSkill
	SkillPointsInSkill int64
	TrainedSkillLevel  int64
}

type CharacterSkillqueue added in v0.17.0

type CharacterSkillqueue struct {
	// contains filtered or unexported fields
}

CharacterSkillqueue represents the skillqueue of a character. This type is safe to use concurrently.

func NewCharacterSkillqueue added in v0.17.0

func NewCharacterSkillqueue() *CharacterSkillqueue

NewCharacterSkillqueue returns a new skill queue for a character.

func (*CharacterSkillqueue) Active added in v0.32.4

Active returns the skill currently in training or nil if training is inactive.

func (*CharacterSkillqueue) All added in v0.61.0

func (*CharacterSkillqueue) CharacterID added in v0.17.0

func (sq *CharacterSkillqueue) CharacterID() int64

CharacterID returns the character ID related to a queue.

func (*CharacterSkillqueue) CompletionP added in v0.32.0

func (sq *CharacterSkillqueue) CompletionP() optional.Optional[float64]

CompletionP returns the completion percentage of the current skill in training (if any).

func (*CharacterSkillqueue) FinishDate added in v0.32.4

func (sq *CharacterSkillqueue) FinishDate() optional.Optional[time.Time]

FinishDate returns the finish date of last skill in the queue.

func (*CharacterSkillqueue) IsActive added in v0.17.0

func (sq *CharacterSkillqueue) IsActive() bool

IsActive reports whether training is active. An empty queue will be reported as inactive.

func (*CharacterSkillqueue) Item added in v0.17.0

Item returns the item on position id in the queue. It returns nil when the position is invalid.

func (*CharacterSkillqueue) Last added in v0.32.4

Last tries to return the last skill in the queue and reports if a skill was returned.

func (*CharacterSkillqueue) RemainingCount added in v0.32.0

func (sq *CharacterSkillqueue) RemainingCount() optional.Optional[int]

RemainingCount returns the number of skills to be trained.

func (*CharacterSkillqueue) RemainingTime added in v0.32.0

func (sq *CharacterSkillqueue) RemainingTime() optional.Optional[time.Duration]

RemainingTime returns the total remaining training time of all skills in the queue.

func (*CharacterSkillqueue) Size added in v0.17.0

func (sq *CharacterSkillqueue) Size() int

Size returns the total number of items in the queue.

func (*CharacterSkillqueue) Update added in v0.17.0

func (sq *CharacterSkillqueue) Update(ctx context.Context, cs CharacterServiceSkillqueue, characterID int64) error

Update replaces the content of the queue with a new version from the service.

type CharacterSkillqueueItem

type CharacterSkillqueueItem struct {
	CharacterID      int64
	GroupName        string
	FinishDate       optional.Optional[time.Time]
	FinishedLevel    int64
	LevelEndSP       optional.Optional[int64]
	LevelStartSP     optional.Optional[int64]
	ID               int64
	QueuePosition    int64
	StartDate        optional.Optional[time.Time]
	SkillID          int64
	SkillName        string
	SkillDescription string
	TrainingStartSP  optional.Optional[int64]
}

func (CharacterSkillqueueItem) CompletionP

func (qi CharacterSkillqueueItem) CompletionP() float64

func (CharacterSkillqueueItem) Duration

func (CharacterSkillqueueItem) IsActive

func (qi CharacterSkillqueueItem) IsActive() bool

IsActive reports whether a skill is active.

func (CharacterSkillqueueItem) IsCompleted

func (qi CharacterSkillqueueItem) IsCompleted() bool

func (CharacterSkillqueueItem) Remaining

func (CharacterSkillqueueItem) String added in v0.13.0

func (qi CharacterSkillqueueItem) String() string

func (CharacterSkillqueueItem) StringShortened added in v0.32.0

func (qi CharacterSkillqueueItem) StringShortened() string

StringShortened returns a string where some names are abbreviated.

type CharacterTag added in v0.30.0

type CharacterTag struct {
	ID   int64
	Name string
}

type CharacterToken

type CharacterToken struct {
	AccessToken  string
	CharacterID  int64
	ExpiresAt    time.Time
	ID           int64
	RefreshToken string
	Scopes       set.Set[string]
	TokenType    string
}

CharacterToken is a SSO token belonging to a character in EVE Online.

func (CharacterToken) AuthToken added in v0.59.0

func (t CharacterToken) AuthToken() *eveauth.Token

func (CharacterToken) HasScopes added in v0.35.0

func (t CharacterToken) HasScopes(scopes set.Set[string]) bool

func (CharacterToken) IsValid added in v0.59.0

func (t CharacterToken) IsValid() bool

func (CharacterToken) OauthToken added in v0.59.0

func (t CharacterToken) OauthToken() *oauth2.Token

func (CharacterToken) RemainsValid

func (t CharacterToken) RemainsValid(d time.Duration) bool

RemainsValid reports whether a token remains valid within a duration.

type CharacterWalletJournalEntry

type CharacterWalletJournalEntry struct {
	Amount        optional.Optional[float64]
	Balance       optional.Optional[float64]
	CharacterID   int64
	ContextID     optional.Optional[int64]
	ContextIDType optional.Optional[string]
	Date          time.Time
	Description   string
	FirstParty    optional.Optional[*EveEntity]
	Reason        optional.Optional[string]
	RefID         int64
	RefType       string
	SecondParty   optional.Optional[*EveEntity]
	Tax           optional.Optional[float64]
	TaxReceiver   optional.Optional[*EveEntity]
}

func (CharacterWalletJournalEntry) RefTypeDisplay added in v0.28.0

func (we CharacterWalletJournalEntry) RefTypeDisplay() string

type CharacterWalletTransaction

type CharacterWalletTransaction struct {
	CharacterID   int64
	Client        *EveEntity
	Date          time.Time
	ID            int64
	IsBuy         bool
	IsPersonal    bool
	JournalRefID  int64
	Location      *EveLocationShort
	Region        *EntityShort
	Quantity      int64
	TransactionID int64
	Type          *EveType
	UnitPrice     float64
}

func (*CharacterWalletTransaction) Total added in v0.30.0

func (wt *CharacterWalletTransaction) Total() float64

type ColonyForecast added in v0.76.0

type ColonyForecast struct {
	Pins               map[int64]*PinForecast // by pin ID
	Status             ColonyStatus
	Time               time.Time                    // time of the forecast
	ValidUntil         optional.Optional[time.Time] // forecast stays the same until then, except for the horizon; empty when nothing changes anymore
	WorkEndsAt         optional.Optional[time.Time] // when the colony stops working, if within the horizon
	WorksBeyondHorizon bool                         // colony is still working at the horizon
}

ColonyForecast is the estimated state of a PI colony at a point in time, simulated forward from the last ESI snapshot.

type ColonyStatus added in v0.76.0

type ColonyStatus uint

ColonyStatus is the overall status of a PI colony.

const (
	ColonyStatusUndefined ColonyStatus = iota
	ColonyNotSetup
	ColonyNeedsAttention
	ColonyIdle
	ColonyProducing
	ColonyExtracting
)

func (ColonyStatus) Color added in v0.76.0

func (s ColonyStatus) Color() fyne.ThemeColorName

func (ColonyStatus) Display added in v0.76.0

func (s ColonyStatus) Display() string

func (ColonyStatus) IsProblem added in v0.76.0

func (s ColonyStatus) IsProblem() bool

IsProblem reports whether the colony needs the player's attention.

func (ColonyStatus) IsWorking added in v0.76.0

func (s ColonyStatus) IsWorking() bool

IsWorking reports whether the colony is extracting or producing.

func (ColonyStatus) String added in v0.76.0

func (s ColonyStatus) String() string

type ContractAvailability added in v0.11.0

type ContractAvailability uint
const (
	ContractAvailabilityUndefined ContractAvailability = iota
	ContractAvailabilityAlliance
	ContractAvailabilityCorporation
	ContractAvailabilityPrivate
	ContractAvailabilityPublic
)

func (ContractAvailability) Display added in v0.47.0

func (cca ContractAvailability) Display() string

func (ContractAvailability) String added in v0.11.0

func (cca ContractAvailability) String() string

type ContractCategory added in v0.76.0

type ContractCategory uint

ContractCategory groups contracts like the game client does.

const (
	ContractCategoryUndefined ContractCategory = iota
	ContractCategoryOutstanding
	ContractCategoryInProgress
	ContractCategoryRequiresAttention
	ContractCategoryFinished
	ContractCategoryOther
)

func ContractCategories added in v0.76.0

func ContractCategories() []ContractCategory

ContractCategories returns the categories in UI order.

func (ContractCategory) Color added in v0.76.0

func (ContractCategory) Display added in v0.76.0

func (cc ContractCategory) Display() string

func (ContractCategory) IsOpen added in v0.76.0

func (cc ContractCategory) IsOpen() bool

type ContractStatus added in v0.11.0

type ContractStatus uint

ContractStatus represents the original status of a contract.

const (
	ContractStatusUndefined ContractStatus = iota
	ContractStatusCancelled
	ContractStatusDeleted
	ContractStatusFailed
	ContractStatusFinished
	ContractStatusFinishedContractor
	ContractStatusFinishedIssuer
	ContractStatusInProgress
	ContractStatusOutstanding
	ContractStatusRejected
	ContractStatusReversed
)

func (ContractStatus) Display added in v0.28.0

func (cs ContractStatus) Display() string

func (ContractStatus) IsFinished added in v0.58.0

func (cs ContractStatus) IsFinished() bool

func (ContractStatus) String added in v0.11.0

func (cs ContractStatus) String() string

type ContractType added in v0.11.0

type ContractType uint
const (
	ContractTypeUndefined ContractType = iota
	ContractTypeAuction
	ContractTypeCourier
	ContractTypeItemExchange
	ContractTypeLoan
	ContractTypeUnknown
)

func (ContractType) Display added in v0.47.0

func (cct ContractType) Display() string

func (ContractType) String added in v0.11.0

func (cct ContractType) String() string

type Corporation added in v0.27.0

type Corporation struct {
	ID             int64
	EveCorporation *EveCorporation
}

func (*Corporation) IDOrZero added in v0.63.0

func (c *Corporation) IDOrZero() int64

func (*Corporation) NameOrZero added in v0.63.0

func (c *Corporation) NameOrZero() string

type CorporationAsset added in v0.57.0

type CorporationAsset struct {
	Asset
	CorporationID int64
}

type CorporationContract added in v0.47.0

type CorporationContract struct {
	ID                int64
	Acceptor          optional.Optional[*EveEntity]
	Assignee          optional.Optional[*EveEntity]
	Availability      ContractAvailability
	Buyout            optional.Optional[float64]
	CorporationID     int64
	Collateral        optional.Optional[float64]
	ContractID        int64
	DateAccepted      optional.Optional[time.Time]
	DateCompleted     optional.Optional[time.Time]
	DateExpired       time.Time
	DateIssued        time.Time
	DaysToComplete    optional.Optional[int64]
	EndLocation       optional.Optional[*EveLocationShort]
	EndSolarSystem    optional.Optional[*EntityShort]
	ForCorporation    bool
	Issuer            *EveEntity
	IssuerCorporation *EveEntity
	Items             []string
	Price             optional.Optional[float64]
	Reward            optional.Optional[float64]
	StartLocation     optional.Optional[*EveLocationShort]
	StartSolarSystem  optional.Optional[*EntityShort]
	Status            ContractStatus
	StatusNotified    ContractStatus
	Title             optional.Optional[string]
	Type              ContractType
	UpdatedAt         time.Time
	Volume            optional.Optional[float64]
}

func (CorporationContract) Category added in v0.76.0

func (cs CorporationContract) Category() ContractCategory

func (CorporationContract) IsExpired added in v0.47.0

func (cs CorporationContract) IsExpired() bool

func (CorporationContract) IssuerEffective added in v0.47.0

func (cs CorporationContract) IssuerEffective() *EveEntity

func (CorporationContract) NameDisplay added in v0.47.0

func (cs CorporationContract) NameDisplay() string

type CorporationContractBid added in v0.47.0

type CorporationContractBid struct {
	ContractID int64
	Amount     float64
	BidID      int64
	Bidder     *EveEntity
	DateBid    time.Time
}

type CorporationContractItem added in v0.47.0

type CorporationContractItem struct {
	ContractID  int64
	IsIncluded  bool
	IsSingleton bool
	Quantity    int64
	RawQuantity optional.Optional[int64]
	RecordID    int64
	Type        *EveType
}

type CorporationHangarName added in v0.35.0

type CorporationHangarName struct {
	CorporationID int64
	DivisionID    int64
	Name          string
}

type CorporationIndustryJob added in v0.27.0

type CorporationIndustryJob struct {
	Activity            IndustryActivity
	BlueprintID         int64
	BlueprintLocationID int64 // can be a corp hanger or container. not supported.
	BlueprintType       *EntityShort
	CorporationID       int64
	CompletedCharacter  optional.Optional[*EveEntity]
	CompletedDate       optional.Optional[time.Time]
	Cost                optional.Optional[float64]
	Duration            int
	EndDate             time.Time
	FacilityID          int64 // can be a corp hanger or container. not supported.
	Installer           *EveEntity
	ID                  int64
	JobID               int64
	LicensedRuns        optional.Optional[int]
	OutputLocationID    int64 // can be a corp hanger or container. not supported.
	PauseDate           optional.Optional[time.Time]
	Probability         optional.Optional[float32]
	ProductType         optional.Optional[*EntityShort]
	Runs                int
	StartDate           time.Time
	Location            *EveLocationShort
	Status              IndustryJobStatus
	SuccessfulRuns      optional.Optional[int64]
}

type CorporationMember added in v0.35.0

type CorporationMember struct {
	CorporationID int64
	Character     *EveEntity
}

CorporationMember represents a member in an EVE Online corporation.

type CorporationSection added in v0.27.0

type CorporationSection string

CorporationSection represents a topic of a corporation that can be updated from ESI.

const (
	SectionCorporationAssets              CorporationSection = "assets"                // corp-assets
	SectionCorporationContracts           CorporationSection = "contracts"             // corp-contract
	SectionCorporationDivisions           CorporationSection = "divisions"             // corp-wallet
	SectionCorporationIndustryJobs        CorporationSection = "industry_jobs"         // corp-industry
	SectionCorporationMembers             CorporationSection = "members"               // corp-member
	SectionCorporationStructures          CorporationSection = "structures"            // corp-asset
	SectionCorporationWalletBalances      CorporationSection = "wallet_balances"       // corp-wallet
	SectionCorporationWalletJournal1      CorporationSection = "wallet_journal_1"      // corp-wallet
	SectionCorporationWalletJournal2      CorporationSection = "wallet_journal_2"      // corp-wallet
	SectionCorporationWalletJournal3      CorporationSection = "wallet_journal_3"      // corp-wallet
	SectionCorporationWalletJournal4      CorporationSection = "wallet_journal_4"      // corp-wallet
	SectionCorporationWalletJournal5      CorporationSection = "wallet_journal_5"      // corp-wallet
	SectionCorporationWalletJournal6      CorporationSection = "wallet_journal_6"      // corp-wallet
	SectionCorporationWalletJournal7      CorporationSection = "wallet_journal_7"      // corp-wallet
	SectionCorporationWalletTransactions1 CorporationSection = "wallet_transactions_1" // corp-wallet
	SectionCorporationWalletTransactions2 CorporationSection = "wallet_transactions_2" // corp-wallet
	SectionCorporationWalletTransactions3 CorporationSection = "wallet_transactions_3" // corp-wallet
	SectionCorporationWalletTransactions4 CorporationSection = "wallet_transactions_4" // corp-wallet
	SectionCorporationWalletTransactions5 CorporationSection = "wallet_transactions_5" // corp-wallet
	SectionCorporationWalletTransactions6 CorporationSection = "wallet_transactions_6" // corp-wallet
	SectionCorporationWalletTransactions7 CorporationSection = "wallet_transactions_7" // corp-wallet
)

func CorporationSectionWalletJournal added in v0.35.0

func CorporationSectionWalletJournal(d Division) CorporationSection

func CorporationSectionWalletTransactions added in v0.35.0

func CorporationSectionWalletTransactions(d Division) CorporationSection

func (CorporationSection) DisplayName added in v0.27.0

func (cs CorporationSection) DisplayName() string

func (CorporationSection) Division added in v0.35.0

func (cs CorporationSection) Division() Division

Division returns the division ID this section is related to or 0 if it has none.

func (CorporationSection) Roles added in v0.35.0

func (cs CorporationSection) Roles() set.Set[Role]

Roles returns which roles are required for fetching data for a section from ESI.

func (CorporationSection) Scopes added in v0.35.0

func (cs CorporationSection) Scopes() set.Set[string]

func (CorporationSection) String added in v0.35.0

func (cs CorporationSection) String() string

func (CorporationSection) Timeout added in v0.27.0

func (cs CorporationSection) Timeout() time.Duration

type CorporationSectionStatus added in v0.27.0

type CorporationSectionStatus struct {
	SectionStatus
	Comment         string
	CorporationID   int64
	CorporationName string
}

type CorporationSectionUpdated added in v0.63.0

type CorporationSectionUpdated struct {
	CorporationID int64
	Section       CorporationSection
	NeedsRefresh  bool
}

type CorporationStructure added in v0.43.0

type CorporationStructure struct {
	CorporationID      int64
	FuelExpires        optional.Optional[time.Time]
	ID                 int64
	Name               optional.Optional[string]
	NextReinforceApply optional.Optional[time.Time]
	NextReinforceHour  optional.Optional[int64]
	ProfileID          int64
	ReinforceHour      optional.Optional[int64]
	Services           []*StructureService
	State              StructureState
	StateTimerEnd      optional.Optional[time.Time]
	StateTimerStart    optional.Optional[time.Time]
	StructureID        int64
	System             *EveSolarSystem
	Type               *EveType
	UnanchorsAt        optional.Optional[time.Time]
}

func (CorporationStructure) DisplayName added in v0.59.0

func (cs CorporationStructure) DisplayName() string

func (CorporationStructure) NameShort added in v0.43.0

func (cs CorporationStructure) NameShort() string

type CorporationWalletBalance added in v0.35.0

type CorporationWalletBalance struct {
	Balance       float64
	CorporationID int64
	DivisionID    int64
}

type CorporationWalletBalanceWithName added in v0.35.0

type CorporationWalletBalanceWithName struct {
	Balance       float64
	CorporationID int64
	DivisionID    int64
	Name          string
}

type CorporationWalletJournalEntry added in v0.35.0

type CorporationWalletJournalEntry struct {
	Amount        optional.Optional[float64]
	Balance       optional.Optional[float64]
	CorporationID int64
	ContextID     optional.Optional[int64]
	ContextIDType optional.Optional[string]
	Date          time.Time
	Description   string
	DivisionID    int64
	FirstParty    optional.Optional[*EveEntity]
	ID            int64
	Reason        optional.Optional[string]
	RefID         int64
	RefType       string
	SecondParty   optional.Optional[*EveEntity]
	Tax           optional.Optional[float64]
	TaxReceiver   optional.Optional[*EveEntity]
}

func (CorporationWalletJournalEntry) RefTypeDisplay added in v0.35.0

func (we CorporationWalletJournalEntry) RefTypeDisplay() string

type CorporationWalletName added in v0.35.0

type CorporationWalletName struct {
	CorporationID int64
	DivisionID    int64
	Name          string
}

type CorporationWalletTransaction added in v0.35.0

type CorporationWalletTransaction struct {
	CorporationID int64
	Client        *EveEntity
	Date          time.Time
	DivisionID    int64
	ID            int64
	IsBuy         bool
	JournalRefID  int64
	Location      *EveLocationShort
	Region        *EntityShort
	Quantity      int64
	TransactionID int64
	Type          *EveType
	UnitPrice     float64
}

func (*CorporationWalletTransaction) Total added in v0.35.0

type Division added in v0.35.0

type Division uint

Division represents a division in an EVE Online corporation.

const (
	DivisionZero Division = iota
	Division1
	Division2
	Division3
	Division4
	Division5
	Division6
	Division7
)

func (Division) DefaultHangarName added in v0.74.0

func (d Division) DefaultHangarName() string

DefaultHangarName returns the generic in-game name for a corporation hangar division, used when the corporation has not set a custom name for it.

func (Division) DefaultWalletName added in v0.35.0

func (d Division) DefaultWalletName() string

func (Division) ID added in v0.35.0

func (d Division) ID() int64

type ESIStatus

type ESIStatus struct {
	PlayerCount  int
	ErrorMessage string
}

ESIStatus represents the current game server status.

func (ESIStatus) IsOK

func (s ESIStatus) IsOK() bool

type EntityShort

type EntityShort struct {
	ID   int64
	Name string
}

EntityShort is a short representation of an entity.

func (*EntityShort) IDOrZero added in v0.65.1

func (c *EntityShort) IDOrZero() int64

func (*EntityShort) NameOrZero added in v0.65.1

func (c *EntityShort) NameOrZero() string

type EveAlliance added in v0.15.0

type EveAlliance struct {
	CreatorCorporation  *EveEntity
	Creator             *EveEntity
	DateFounded         time.Time
	ExecutorCorporation optional.Optional[*EveEntity]
	Faction             optional.Optional[*EveEntity]
	ID                  int64
	Name                string
	Ticker              string
}

func (EveAlliance) ToEveEntity added in v0.15.0

func (ea EveAlliance) ToEveEntity() *EveEntity

type EveBloodline added in v0.67.0

type EveBloodline struct {
	Charisma     optional.Optional[int64]
	Corporation  *EveEntity
	Description  string
	ID           int64
	Intelligence optional.Optional[int64]
	Memory       optional.Optional[int64]
	Name         string
	Perception   optional.Optional[int64]
	Race         *EveRace
	ShipTypeID   optional.Optional[int64]
	Willpower    optional.Optional[int64]
}

EveBloodline is a bloodline in EVE Online.

func (eb *EveBloodline) Logo() (fyne.Resource, bool)

Logo returns the logo for a bloodline and reports whether one exists.

type EveCategory

type EveCategory struct {
	ID          int64
	IsPublished bool
	Name        string
}

EveCategory is a category in EVE Online.

type EveCharacter

type EveCharacter struct {
	Alliance         optional.Optional[*EveEntity]
	Birthday         time.Time
	Bloodline        optional.Optional[*EntityShort] // optional, because added later
	Corporation      *EveEntity
	CorporationTitle optional.Optional[string]
	Description      optional.Optional[string]
	Faction          optional.Optional[*EveEntity]
	Gender           string
	ID               int64
	Name             string
	Race             *EveRace
	SecurityStatus   optional.Optional[float64]
}

EveCharacter is a character in EVE Online.

func (EveCharacter) CorporationTitlePlain added in v0.72.0

func (ec EveCharacter) CorporationTitlePlain() string

func (EveCharacter) DescriptionPlain added in v0.15.0

func (ec EveCharacter) DescriptionPlain() string

func (EveCharacter) EntityIDs added in v0.41.0

func (ec EveCharacter) EntityIDs() set.Set[int64]

EntityIDs returns the IDs of all entities for a character.

func (EveCharacter) Equal added in v0.40.0

func (ec EveCharacter) Equal(other *EveCharacter) bool

Equal reports whether two characters are equal. Two characters must have the same values in all fields to be equal.

func (EveCharacter) Hash added in v0.44.0

func (ec EveCharacter) Hash() string

Hash returns the hash for this character. It can be used to detect changes between instances.

func (EveCharacter) ToEveEntity added in v0.15.0

func (ec EveCharacter) ToEveEntity() *EveEntity

type EveConstellation

type EveConstellation struct {
	ID     int64
	Name   string
	Region *EveRegion
}

EveConstellation is a constellation in EVE Online.

func (EveConstellation) ToEveEntity added in v0.15.0

func (ec EveConstellation) ToEveEntity() *EveEntity

type EveCorporation added in v0.15.0

type EveCorporation struct {
	Alliance    optional.Optional[*EveEntity]
	Ceo         optional.Optional[*EveEntity]
	Creator     optional.Optional[*EveEntity]
	DateFounded optional.Optional[time.Time]
	Description string
	Faction     optional.Optional[*EveEntity]
	HomeStation optional.Optional[*EveEntity]
	ID          int64
	MemberCount int64
	Name        string
	Shares      optional.Optional[int64]
	TaxRate     float64
	Ticker      string
	URL         optional.Optional[string]
	WarEligible optional.Optional[bool]
	Timestamp   time.Time
}

EveCorporation is a corporation in EVE Online.

func (EveCorporation) DescriptionPlain added in v0.15.0

func (ec EveCorporation) DescriptionPlain() string

func (EveCorporation) Equal added in v0.40.0

func (ec EveCorporation) Equal(other *EveCorporation) bool

Equal reports whether two characters are equal. Two characters must have the same values in all fields to be equal.

func (EveCorporation) Hash added in v0.44.0

func (ec EveCorporation) Hash() string

func (EveCorporation) ToEveEntity added in v0.15.0

func (ec EveCorporation) ToEveEntity() *EveEntity

type EveDogmaAttribute

type EveDogmaAttribute struct {
	ID           int64
	DefaultValue optional.Optional[float64]
	Description  optional.Optional[string]
	DisplayName  optional.Optional[string]
	IconID       optional.Optional[int64]
	Name         optional.Optional[string]
	IsHighGood   optional.Optional[bool]
	IsPublished  optional.Optional[bool]
	IsStackable  optional.Optional[bool]
	Unit         EveUnitID
}

type EveEntity

type EveEntity struct {
	Category EveEntityCategory
	ID       int64
	Name     string
}

An EveEntity in EveOnline.

func (*EveEntity) CategoryDisplay added in v0.13.0

func (ee *EveEntity) CategoryDisplay() string

func (*EveEntity) Compare added in v0.16.0

func (ee *EveEntity) Compare(other *EveEntity) int

func (*EveEntity) IDOrZero added in v0.68.0

func (ee *EveEntity) IDOrZero() int64
func (ee *EveEntity) InfoLink() (string, error)

InfoLink returns a showinfo schema link for this object.

func (*EveEntity) IsCharacter

func (ee *EveEntity) IsCharacter() bool

IsCharacter reports whether an entity is a character.

func (*EveEntity) IsNPC added in v0.26.0

func (ee *EveEntity) IsNPC() optional.Optional[bool]

IsNPC reports whether an entity is a NPC.

This function only works for characters and corporations and returns an empty value for anything else..

func (*EveEntity) IsValid added in v0.32.0

func (ee *EveEntity) IsValid() bool

IsValid reports whether an entity is valid.

func (*EveEntity) NameOrZero added in v0.68.0

func (ee *EveEntity) NameOrZero() string

func (*EveEntity) ToEveEntity added in v0.68.0

func (ee *EveEntity) ToEveEntity() *EveEntity

ToEveEntity returns a clone of itself.

type EveEntityCategory

type EveEntityCategory int
const (
	EveEntityUndefined EveEntityCategory = iota
	EveEntityAlliance
	EveEntityCharacter
	EveEntityConstellation
	EveEntityCorporation
	EveEntityFaction
	EveEntityInventoryType
	EveEntityMailList
	EveEntityRegion
	EveEntitySolarSystem
	EveEntityStation
	EveEntityUnknown
)

Supported categories of EveEntity

func (EveEntityCategory) IsKnown added in v0.18.0

func (eec EveEntityCategory) IsKnown() bool

IsKnown reports whether a category is known.

func (EveEntityCategory) String

func (eec EveEntityCategory) String() string

type EveFaction added in v0.68.0

type EveFaction struct {
	ID                 int64
	Corporation        optional.Optional[*EveEntity]
	Description        string
	IsUnique           bool
	MilitiaCorporation optional.Optional[*EveEntity]
	Name               string
	SizeFactor         float64
	SolarSystem        optional.Optional[*EveEntity]
	StationCount       int64
	StationSystemCount int64
}

EveFaction is a faction in EVE Online.

type EveGroup

type EveGroup struct {
	ID          int64
	Category    *EveCategory
	IsPublished bool
	Name        string
}

EveGroup is a group in EVE Online.

type EveLocation

type EveLocation struct {
	ID          int64
	SolarSystem optional.Optional[*EveSolarSystem]
	Type        optional.Optional[*EveType]
	Name        string
	Owner       optional.Optional[*EveEntity]
	UpdatedAt   time.Time
}

EveLocation is a location in EVE Online.

func (EveLocation) DisplayName

func (el EveLocation) DisplayName() string

DisplayName returns a user friendly name.

func (EveLocation) DisplayName2

func (el EveLocation) DisplayName2() string

DisplayName2 returns a user friendly name not including the system name.

func (EveLocation) DisplayRichText added in v0.18.0

func (el EveLocation) DisplayRichText() []widget.RichTextSegment

func (EveLocation) RegionName added in v0.29.2

func (el EveLocation) RegionName() string

func (EveLocation) SolarSystemName added in v0.29.2

func (el EveLocation) SolarSystemName() string

func (EveLocation) ToEveEntity added in v0.15.0

func (el EveLocation) ToEveEntity() *EveEntity

func (EveLocation) ToEveLocationShort added in v0.68.0

func (el EveLocation) ToEveLocationShort() *EveLocationShort

func (EveLocation) Variant

func (el EveLocation) Variant() EveLocationVariant

type EveLocationShort added in v0.23.0

type EveLocationShort struct {
	ID             int64
	Name           optional.Optional[string]
	SecurityStatus optional.Optional[float32]
}

EveLocationShort is a shortened representation of EveLocation.

func (EveLocationShort) DisplayName added in v0.28.0

func (l EveLocationShort) DisplayName() string

func (EveLocationShort) DisplayRichText added in v0.23.0

func (l EveLocationShort) DisplayRichText() []widget.RichTextSegment

func (EveLocationShort) SecurityType added in v0.23.0

type EveLocationVariant

type EveLocationVariant int
const (
	EveLocationUnknown EveLocationVariant = iota
	EveLocationAssetSafety
	EveLocationStation
	EveLocationStructure
	EveLocationSolarSystem
)

func LocationVariantFromID

func LocationVariantFromID(id int64) EveLocationVariant

type EveMarketPrice

type EveMarketPrice struct {
	TypeID        int64
	AdjustedPrice optional.Optional[float64]
	AveragePrice  optional.Optional[float64]
}

func (EveMarketPrice) Equal added in v0.40.0

func (x EveMarketPrice) Equal(other EveMarketPrice) bool

Equal reports whether two objects are equal.

type EveMoon

type EveMoon struct {
	ID          int64
	Name        string
	SolarSystem *EveSolarSystem
}

EveMoon is a moon in EVE Online.

type EveNotificationGroup added in v0.41.0

type EveNotificationGroup uint

EveNotificationGroup represents a group of notification types.

const (
	GroupUndefined EveNotificationGroup = iota
	GroupAgents
	GroupBills
	GroupContacts
	GroupCorporate
	GroupFactionWarfare
	GroupInsurance
	GroupInsurgencies
	GroupMiscellaneous
	GroupMoonMining
	GroupOld
	GroupOther
	GroupSovereignty
	GroupStructure
	GroupWar

	GroupUnread
	GroupAll
)

func NotificationGroups added in v0.17.0

func NotificationGroups() []EveNotificationGroup

NotificationGroups returns a slice of all regular groups in alphabetical order.

func (EveNotificationGroup) IsContainer added in v0.69.0

func (ng EveNotificationGroup) IsContainer() bool

IsContainer reports whether a group can contain multiple other groups.

func (EveNotificationGroup) String added in v0.41.0

func (ng EveNotificationGroup) String() string

type EveNotificationType added in v0.41.0

type EveNotificationType uint

EveNotificationType represents a notification type in EVE Online.

const (
	UnknownNotification EveNotificationType = iota
	AcceptedAlly
	AcceptedSurrender
	AgentRetiredTrigravian
	AllAnchoringMsg
	AllMaintenanceBillMsg
	AllStructureInvulnerableMsg
	AllStructVulnerableMsg
	AllWarCorpJoinedAllianceMsg
	AllWarDeclaredMsg
	AllWarInvalidatedMsg
	AllWarRetractedMsg
	AllWarSurrenderMsg
	AllianceCapitalChanged
	AllianceWarDeclaredV2
	AllyContractCancelled
	AllyJoinedWarAggressorMsg
	AllyJoinedWarAllyMsg
	AllyJoinedWarDefenderMsg
	BattlePunishFriendlyFire
	BillOutOfMoneyMsg
	BillPaidCorpAllMsg
	BountyClaimMsg
	BountyESSShared
	BountyESSTaken
	BountyPlacedAlliance
	BountyPlacedChar
	BountyPlacedCorp
	BountyYourBountyClaimed
	BuddyConnectContactAdd
	CharAppAcceptMsg
	CharAppRejectMsg
	CharAppWithdrawMsg
	CharLeftCorpMsg
	CharMedalMsg
	CharTerminationMsg
	CloneActivationMsg
	CloneActivationMsg2
	CloneMovedMsg
	CloneRevokedMsg1
	CloneRevokedMsg2
	CombatOperationFinished
	ContactAdd
	ContactEdit
	ContainerPasswordMsg
	ContractRegionChangedToPochven
	CorpAllBillMsg
	CorpAppAcceptMsg
	CorpAppInvitedMsg
	CorpAppNewMsg
	CorpAppRejectCustomMsg
	CorpAppRejectMsg
	CorpBecameWarEligible
	CorpDividendMsg
	CorpFriendlyFireDisableTimerCompleted
	CorpFriendlyFireDisableTimerStarted
	CorpFriendlyFireEnableTimerCompleted
	CorpFriendlyFireEnableTimerStarted
	CorpKicked
	CorpLiquidationMsg
	CorpNewCEOMsg
	CorpNewsMsg
	CorpNoLongerWarEligible
	CorpOfficeExpirationMsg
	CorpStructLostMsg
	CorpTaxChangeMsg
	CorpVoteCEORevokedMsg
	CorpVoteMsg
	CorpWarDeclaredMsg
	CorpWarDeclaredV2
	CorpWarFightingLegalMsg
	CorpWarInvalidatedMsg
	CorpWarRetractedMsg
	CorpWarSurrenderMsg
	CorporationGoalClosed
	CorporationGoalCompleted
	CorporationGoalCreated
	CorporationGoalNameChange
	CorporationLeft
	CustomsMsg
	DeclareWar
	DistrictAttacked
	DustAppAcceptedMsg
	ESSMainBankLink
	EntosisCaptureStarted
	ExpertSystemExpired
	ExpertSystemExpiryImminent
	FWAllianceKickMsg
	FWAllianceWarningMsg
	FWCharKickMsg
	FWCharRankGainMsg
	FWCharRankLossMsg
	FWCharWarningMsg
	FWCorpJoinMsg
	FWCorpKickMsg
	FWCorpLeaveMsg
	FWCorpWarningMsg
	FacWarCorpJoinRequestMsg
	FacWarCorpJoinWithdrawMsg
	FacWarCorpLeaveRequestMsg
	FacWarCorpLeaveWithdrawMsg
	FacWarLPDisqualifiedEvent
	FacWarLPDisqualifiedKill
	FacWarLPPayoutEvent
	FacWarLPPayoutKill
	GameTimeAdded
	GameTimeReceived
	GameTimeSent
	GiftReceived
	IHubDestroyedByBillFailure
	IncursionCompletedMsg
	IndustryOperationFinished
	IndustryTeamAuctionLost
	IndustryTeamAuctionWon
	InfrastructureHubBillAboutToExpire
	InsuranceExpirationMsg
	InsuranceFirstShipMsg
	InsuranceInvalidatedMsg
	InsuranceIssuedMsg
	InsurancePayoutMsg
	InvasionCompletedMsg
	InvasionSystemLogin
	InvasionSystemStart
	JumpCloneDeletedMsg1
	JumpCloneDeletedMsg2
	KillReportFinalBlow
	KillReportVictim
	KillRightAvailable
	KillRightAvailableOpen
	KillRightEarned
	KillRightUnavailable
	KillRightUnavailableOpen
	KillRightUsed
	LPAutoRedeemed
	LocateCharMsg
	MadeWarMutual
	MercenaryDenAttacked
	MercenaryDenReinforced
	MercOfferRetractedMsg
	MercOfferedNegotiationMsg
	MissionCanceledTriglavian
	MissionOfferExpirationMsg
	MissionTimeoutMsg
	MoonminingAutomaticFracture
	MoonminingExtractionCancelled
	MoonminingExtractionFinished
	MoonminingExtractionStarted
	MoonminingLaserFired
	MutualWarExpired
	MutualWarInviteAccepted
	MutualWarInviteRejected
	MutualWarInviteSent
	NPCStandingsGained
	NPCStandingsLost
	OfferToAllyRetracted
	OfferedSurrender
	OfferedToAlly
	OfficeLeaseCanceledInsufficientStandings
	OldLscMessages
	OperationFinished
	OrbitalAttacked
	OrbitalReinforced
	OwnershipTransferred
	RaffleCreated
	RaffleExpired
	RaffleFinished
	ReimbursementMsg
	ResearchMissionAvailableMsg
	RetractsWar
	SPAutoRedeemed
	SeasonalChallengeCompleted
	SkinSequencingCompleted
	SkyhookDeployed
	SkyhookDestroyed
	SkyhookLostShields
	SkyhookOnline
	SkyhookUnderAttack
	SovAllClaimAcquiredMsg
	SovAllClaimLostMsg
	SovCommandNodeEventStarted
	SovCorpBillLateMsg
	SovCorpClaimFailMsg
	SovDisruptorMsg
	SovStationEnteredFreeport
	SovStructureDestroyed
	SovStructureReinforced
	SovStructureSelfDestructCancel
	SovStructureSelfDestructFinished
	SovStructureSelfDestructRequested
	SovereigntyIHDamageMsg
	SovereigntySBUDamageMsg
	SovereigntyTCUDamageMsg
	StationAggressionMsg1
	StationAggressionMsg2
	StationConquerMsg
	StationServiceDisabled
	StationServiceEnabled
	StationStateChangeMsg
	StoryLineMissionAvailableMsg
	StructureAnchoring
	StructureCourierContractChanged
	StructureDestroyed
	StructureFuelAlert
	StructureImpendingAbandonmentAssetsAtRisk
	StructureItemsDelivered
	StructureItemsMovedToSafety
	StructureLostArmor
	StructureLostShields
	StructureLowReagentsAlert
	StructureNoReagentsAlert
	StructureOnline
	StructurePaintPurchased
	StructureServicesOffline
	StructureUnanchoring
	StructureUnderAttack
	StructureWentHighPower
	StructureWentLowPower
	StructuresJobsCancelled
	StructuresJobsPaused
	StructuresReinforcementChanged
	TowerAlertMsg
	TowerResourceAlertMsg
	TransactionReversalMsg
	TutorialMsg
	WarAdopted
	WarAllyInherited
	WarAllyOfferDeclinedMsg
	WarConcordInvalidates
	WarDeclared
	WarEndedHqSecurityDrop
	WarHQRemovedFromSpace
	WarInherited
	WarInvalid
	WarRetracted
	WarRetractedByConcord
	WarSurrenderDeclinedMsg
	WarSurrenderOfferMsg
)

func EveNotificationTypeFromString added in v0.41.0

func EveNotificationTypeFromString(s string) (EveNotificationType, bool)

EveNotificationTypeFromString returns the EveNotificationType for a matching string and reports whether a match was found

func EveNotificationTypes added in v0.69.0

func EveNotificationTypes() []EveNotificationType

EveNotificationTypes returns all known types.

func (EveNotificationType) Category added in v0.41.0

func (nt EveNotificationType) Category() EveEntityCategory

Category returns the recipient category for a notification type.

func (EveNotificationType) Display added in v0.41.0

func (nt EveNotificationType) Display() string

Display returns a string representation for display.

func (EveNotificationType) Group added in v0.41.0

Group returns the group of a notification.

func (EveNotificationType) String added in v0.41.0

func (i EveNotificationType) String() string

type EvePlanet

type EvePlanet struct {
	ID          int64
	Name        string
	SolarSystem *EveSolarSystem
	Type        *EveType
}

EvePlanet is a planet in EVE Online.

func (EvePlanet) TypeDisplay added in v0.8.0

func (ep EvePlanet) TypeDisplay() string

type EveRace

type EveRace struct {
	Faction     optional.Optional[*EveEntity] // optional, because added later
	Description string
	Name        string
	ID          int64
}

EveRace is a race in EVE Online.

func (EveRace) FactionID

func (er EveRace) FactionID() (int64, bool)

FactionID returns the faction ID of a race.

type EveRegion

type EveRegion struct {
	Description optional.Optional[string]
	ID          int64
	Name        string
}

EveRegion is a region in EVE Online.

func (EveRegion) DescriptionPlain added in v0.17.0

func (er EveRegion) DescriptionPlain() string

func (EveRegion) ToEveEntity added in v0.15.0

func (er EveRegion) ToEveEntity() *EveEntity

type EveRequiredSkill added in v0.61.0

type EveRequiredSkill struct {
	Type  *EveType
	Level int
}

type EveRouteHeader added in v0.28.0

type EveRouteHeader struct {
	Origin      *EveSolarSystem
	Destination *EveSolarSystem
	Preference  EveRoutePreference
}

EveRouteHeader describes the header for a route in EVE Online.

type EveRoutePreference added in v0.28.0

type EveRoutePreference uint

EveRoutePreference represents the calculation preference when requesting a route from ESI.

const (
	RouteShorter EveRoutePreference = iota
	RouteSafer
	RouteLessSecure
)

func EveRoutePreferenceFromString added in v0.28.0

func EveRoutePreferenceFromString(s string) EveRoutePreference

func EveRoutePreferences added in v0.28.0

func EveRoutePreferences() []EveRoutePreference

func (EveRoutePreference) String added in v0.28.0

func (x EveRoutePreference) String() string

type EveSchematic added in v0.8.0

type EveSchematic struct {
	ID        int64
	CycleTime int
	Name      string
}

EveSchematic is a schematic for planetary industry in EVE Online.

func (EveSchematic) Icon added in v0.23.0

func (es EveSchematic) Icon() (fyne.Resource, bool)

type EveShipSkill

type EveShipSkill struct {
	ID          int64
	Rank        uint
	ShipTypeID  int64
	SkillTypeID int64
	SkillName   string
	SkillLevel  uint
}

type EveSkill added in v0.61.0

type EveSkill struct {
	Rank         optional.Optional[int]    // Rank of this skill
	Requirements map[int]*EveRequiredSkill // the map index denotes the rank with 0 = primary, 1 = secondary, etc.
	Skillpoints  optional.Optional[int]    // Total skillpoints needed to train this skill
	Type         *EveType
}

type EveSkillGroup added in v0.61.0

type EveSkillGroup struct {
	ID         int64
	Name       string
	SkillCount int
}

EveSkillGroup is a specialized group for skills.

type EveSolarSystem

type EveSolarSystem struct {
	Constellation  *EveConstellation
	ID             int64
	Name           string
	SecurityStatus float32
}

EveSolarSystem is a solar system in EVE Online.

func (EveSolarSystem) DisplayRichText added in v0.15.0

func (es EveSolarSystem) DisplayRichText() []widget.RichTextSegment

func (EveSolarSystem) DisplayRichTextWithRegion added in v0.18.0

func (es EveSolarSystem) DisplayRichTextWithRegion() []widget.RichTextSegment

func (EveSolarSystem) IsWormholeSpace added in v0.18.0

func (es EveSolarSystem) IsWormholeSpace() bool

func (EveSolarSystem) SecurityStatusDisplay added in v0.16.0

func (es EveSolarSystem) SecurityStatusDisplay() string

func (EveSolarSystem) SecurityStatusRichText added in v0.18.0

func (es EveSolarSystem) SecurityStatusRichText() []widget.RichTextSegment

func (EveSolarSystem) SecurityType

func (es EveSolarSystem) SecurityType() SolarSystemSecurityType

func (EveSolarSystem) ToEveEntity added in v0.15.0

func (es EveSolarSystem) ToEveEntity() *EveEntity

type EveSolarSystemPlanet added in v0.17.0

type EveSolarSystemPlanet struct {
	AsteroidBeltIDs []int64
	MoonIDs         []int64
	PlanetID        int64
}

type EveType

type EveType struct {
	ID             int64
	Group          *EveGroup
	Capacity       optional.Optional[float64]
	Description    string
	GraphicID      optional.Optional[int64]
	IconID         optional.Optional[int64]
	IsPublished    bool
	MarketGroupID  optional.Optional[int64]
	Mass           optional.Optional[float64]
	Name           string
	PackagedVolume optional.Optional[float64]
	PortionSize    optional.Optional[int64]
	Radius         optional.Optional[float64]
	Volume         optional.Optional[float64]
}

EveType is a type in EVE Online.

func (EveType) DescriptionPlain

func (et EveType) DescriptionPlain() string

func (EveType) HasFuelBay

func (et EveType) HasFuelBay() bool

func (EveType) HasRender

func (et EveType) HasRender() bool

func (EveType) Icon added in v0.8.0

func (et EveType) Icon() (fyne.Resource, bool)

Icon returns the icon for a type from the eveicon package and whether and icon exists for this type.

func (EveType) IsBlueprint

func (et EveType) IsBlueprint() bool

func (EveType) IsSKIN

func (et EveType) IsSKIN() bool

func (EveType) IsShip

func (et EveType) IsShip() bool

func (EveType) IsTradeable added in v0.25.0

func (et EveType) IsTradeable() bool

func (EveType) ToEveEntity added in v0.15.0

func (et EveType) ToEveEntity() *EveEntity

type EveTypeDogmaAttribute added in v0.8.1

type EveTypeDogmaAttribute struct {
	DogmaAttribute *EveDogmaAttribute
	Type           *EveType
	Value          float64
}

type EveUnitID

type EveUnitID uint
const (
	EveUnitNone                           EveUnitID = 0
	EveUnitLength                         EveUnitID = 1
	EveUnitMass                           EveUnitID = 2
	EveUnitTime                           EveUnitID = 3
	EveUnitElectricCurrent                EveUnitID = 4
	EveUnitTemperature                    EveUnitID = 5
	EveUnitAmountOfSubstance              EveUnitID = 6
	EveUnitLuminousIntensity              EveUnitID = 7
	EveUnitArea                           EveUnitID = 8
	EveUnitVolume                         EveUnitID = 9
	EveUnitSpeed                          EveUnitID = 10
	EveUnitAcceleration                   EveUnitID = 11
	EveUnitWaveNumber                     EveUnitID = 12
	EveUnitMassDensity                    EveUnitID = 13
	EveUnitSpecificVolume                 EveUnitID = 14
	EveUnitCurrentDensity                 EveUnitID = 15
	EveUnitMagneticFieldStrength          EveUnitID = 16
	EveUnitAmountOfSubstanceConcentration EveUnitID = 17
	EveUnitLuminance                      EveUnitID = 18
	EveUnitMassFraction                   EveUnitID = 19
	EveUnitMilliseconds                   EveUnitID = 101
	EveUnitMillimeters                    EveUnitID = 102
	EveUnitMegaPascals                    EveUnitID = 103
	EveUnitMultiplier                     EveUnitID = 104
	EveUnitPercentage                     EveUnitID = 105
	EveUnitTeraflops                      EveUnitID = 106
	EveUnitMegaWatts                      EveUnitID = 107
	EveUnitInverseAbsolutePercent         EveUnitID = 108
	EveUnitModifierPercent                EveUnitID = 109
	EveUnitInverseModifierPercent         EveUnitID = 111
	EveUnitRadiansPerSecond               EveUnitID = 112
	EveUnitHitpoints                      EveUnitID = 113
	EveUnitCapacitorUnits                 EveUnitID = 114
	EveUnitGroupID                        EveUnitID = 115
	EveUnitTypeID                         EveUnitID = 116
	EveUnitSizeClass                      EveUnitID = 117
	EveUnitOreUnits                       EveUnitID = 118
	EveUnitAttributeID                    EveUnitID = 119
	EveUnitAttributePoints                EveUnitID = 120
	EveUnitRealPercent                    EveUnitID = 121
	EveUnitFittingSlots                   EveUnitID = 122
	EveUnitTrueTime                       EveUnitID = 123
	EveUnitModifierRelativePercent        EveUnitID = 124
	EveUnitNewton                         EveUnitID = 125
	EveUnitLightYear                      EveUnitID = 126
	EveUnitAbsolutePercent                EveUnitID = 127
	EveUnitDroneBandwidth                 EveUnitID = 128
	EveUnitHours                          EveUnitID = 129
	EveUnitMoney                          EveUnitID = 133
	EveUnitLogisticalCapacity             EveUnitID = 134
	EveUnitAstronomicalUnit               EveUnitID = 135
	EveUnitSlot                           EveUnitID = 136
	EveUnitBoolean                        EveUnitID = 137
	EveUnitUnits                          EveUnitID = 138
	EveUnitBonus                          EveUnitID = 139
	EveUnitLevel                          EveUnitID = 140
	EveUnitHardpoints                     EveUnitID = 141
	EveUnitSex                            EveUnitID = 142
	EveUnitDatetime                       EveUnitID = 143
	EveUnitWarpSpeed                      EveUnitID = 144 // inferred
)

type EveUniverseSection added in v0.63.0

type EveUniverseSection string

EveUniverseSection represents a topic from EveUniverse that can be updated, e.g. market prices

const (
	SectionEveCharacters   EveUniverseSection = "characters"    // character
	SectionEveCorporations EveUniverseSection = "corporations"  // corporation
	SectionEveEntities     EveUniverseSection = "entities"      // static-data
	SectionEveMarketPrices EveUniverseSection = "market_prices" // market
	SectionEveTypes        EveUniverseSection = "types"         // static-data
)

func (EveUniverseSection) DisplayName added in v0.63.0

func (gs EveUniverseSection) DisplayName() string

func (EveUniverseSection) Scopes added in v0.63.0

func (gs EveUniverseSection) Scopes() set.Set[string]

func (EveUniverseSection) String added in v0.63.0

func (gs EveUniverseSection) String() string

func (EveUniverseSection) Timeout added in v0.63.0

func (gs EveUniverseSection) Timeout() time.Duration

type EveUniverseSectionStatus added in v0.63.0

type EveUniverseSectionStatus struct {
	SectionStatus
}

EveUniverseSectionStatus represents the status of an EveUniverse section.

type EveUniverseSectionUpdated added in v0.63.0

type EveUniverseSectionUpdated struct {
	Changed      set.Set[int64]
	Section      EveUniverseSection
	NeedsRefresh bool
}

type IndustryActivity added in v0.23.0

type IndustryActivity int64

IndustryActivity represents the activity type of an industry job. See also: https://github.com/esi/esi-issues/issues/894

const (
	None                       IndustryActivity = 0
	Manufacturing              IndustryActivity = 1
	TimeEfficiencyResearch     IndustryActivity = 3
	MaterialEfficiencyResearch IndustryActivity = 4
	Copying                    IndustryActivity = 5
	Invention                  IndustryActivity = 8
	Reactions1                 IndustryActivity = 9
	Reactions2                 IndustryActivity = 11
)

func (IndustryActivity) Display added in v0.23.0

func (a IndustryActivity) Display() string

func (IndustryActivity) JobType added in v0.29.0

func (a IndustryActivity) JobType() IndustryJobType

func (IndustryActivity) String added in v0.23.0

func (a IndustryActivity) String() string

type IndustryJobActivityCount added in v0.29.0

type IndustryJobActivityCount struct {
	InstallerID int64
	Activity    IndustryActivity
	Status      IndustryJobStatus
	Count       int
}

type IndustryJobStatus added in v0.23.0

type IndustryJobStatus uint

IndustryJobStatus represents the current state of an industry job.

const (
	JobUndefined IndustryJobStatus = iota
	JobActive
	JobCancelled
	JobDelivered
	JobPaused
	JobReady
	JobReverted
	JobUnknown // status can not be determined
)

func (IndustryJobStatus) Color added in v0.23.0

func (IndustryJobStatus) Display added in v0.23.0

func (s IndustryJobStatus) Display() string

func (IndustryJobStatus) IsActive added in v0.39.1

func (s IndustryJobStatus) IsActive() bool

IsActive reports whether a status is considered active.

func (IndustryJobStatus) String added in v0.23.0

func (s IndustryJobStatus) String() string

type IndustryJobType added in v0.29.0

type IndustryJobType uint

IndustryJobType represents the type of industry jobs and defines which slots are utilized.

const (
	UndefinedJob IndustryJobType = iota
	ManufacturingJob
	ScienceJob
	ReactionJob
)

func (IndustryJobType) Activities added in v0.29.0

func (jt IndustryJobType) Activities() set.Set[IndustryActivity]

Activities returns the industry activities that belong to a job type.

func (IndustryJobType) Display added in v0.29.0

func (jt IndustryJobType) Display() string

func (IndustryJobType) String added in v0.29.0

func (jt IndustryJobType) String() string

type InventoryTypeVariant added in v0.44.0

type InventoryTypeVariant uint

InventoryTypeVariant represents a variant of inventory types for asset items.

const (
	VariantRegular InventoryTypeVariant = iota
	VariantBPO
	VariantBPC
	VariantSKIN
)

func (InventoryTypeVariant) String added in v0.72.0

func (v InventoryTypeVariant) String() string

type LocationFlag added in v0.44.0

type LocationFlag uint

LocationFlag represents a location flag for assets.

const (
	FlagUndefined LocationFlag = iota
	FlagAssetSafety
	FlagAutoFit
	FlagBonus
	FlagBooster
	FlagBoosterBay
	FlagCapsule
	FlagCapsuleerDeliveries
	FlagCargo
	FlagCorpDeliveries
	FlagCorporationGoalDeliveries
	FlagCorpSAG1
	FlagCorpSAG2
	FlagCorpSAG3
	FlagCorpSAG4
	FlagCorpSAG5
	FlagCorpSAG6
	FlagCorpSAG7
	FlagCorpseBay
	FlagCrateLoot
	FlagDeliveries
	FlagDroneBay
	FlagDustBattle
	FlagDustDatabank
	FlagExpeditionHold
	FlagFighterBay
	FlagFighterTube0
	FlagFighterTube1
	FlagFighterTube2
	FlagFighterTube3
	FlagFighterTube4
	FlagFleetHangar
	FlagFrigateEscapeBay
	FlagHangar
	FlagHangarAll
	FlagHiddenModifiers
	FlagHiSlot0
	FlagHiSlot1
	FlagHiSlot2
	FlagHiSlot3
	FlagHiSlot4
	FlagHiSlot5
	FlagHiSlot6
	FlagHiSlot7
	FlagImplant
	FlagImpounded
	FlagInfrastructureHangar
	FlagJunkyardReprocessed
	FlagJunkyardTrashed
	FlagLocked
	FlagLoSlot0
	FlagLoSlot1
	FlagLoSlot2
	FlagLoSlot3
	FlagLoSlot4
	FlagLoSlot5
	FlagLoSlot6
	FlagLoSlot7
	FlagMedSlot0
	FlagMedSlot1
	FlagMedSlot2
	FlagMedSlot3
	FlagMedSlot4
	FlagMedSlot5
	FlagMedSlot6
	FlagMedSlot7
	FlagMobileDepotHold
	FlagMoonMaterialBay
	FlagOfficeFolder
	FlagPilot
	FlagPlanetSurface
	FlagQuafeBay
	FlagQuantumCoreRoom
	FlagReward
	FlagRigSlot0
	FlagRigSlot1
	FlagRigSlot2
	FlagRigSlot3
	FlagRigSlot4
	FlagRigSlot5
	FlagRigSlot6
	FlagRigSlot7
	FlagSecondaryStorage
	FlagServiceSlot0
	FlagServiceSlot1
	FlagServiceSlot2
	FlagServiceSlot3
	FlagServiceSlot4
	FlagServiceSlot5
	FlagServiceSlot6
	FlagServiceSlot7
	FlagShipHangar
	FlagShipOffline
	FlagSkill
	FlagSkillInTraining
	FlagSpecializedAmmoHold
	FlagSpecializedAsteroidHold
	FlagSpecializedCommandCenterHold
	FlagSpecializedFuelBay
	FlagSpecializedGasHold
	FlagSpecializedIceHold
	FlagSpecializedIndustrialShipHold
	FlagSpecializedLargeShipHold
	FlagSpecializedMaterialBay
	FlagSpecializedMediumShipHold
	FlagSpecializedMineralHold
	FlagSpecializedOreHold
	FlagSpecializedPlanetaryCommoditiesHold
	FlagSpecializedSalvageHold
	FlagSpecializedShipHold
	FlagSpecializedSmallShipHold
	FlagStructureActive
	FlagStructureDeedBay
	FlagStructureFuel
	FlagStructureInactive
	FlagStructureOffline
	FlagSubSystemBay
	FlagSubSystemSlot0
	FlagSubSystemSlot1
	FlagSubSystemSlot2
	FlagSubSystemSlot3
	FlagSubSystemSlot4
	FlagSubSystemSlot5
	FlagSubSystemSlot6
	FlagSubSystemSlot7
	FlagUnlocked
	FlagWallet
	FlagWardrobe
	FlagUnknown
)

func (LocationFlag) String added in v0.57.0

func (i LocationFlag) String() string

type LocationType added in v0.44.0

type LocationType uint

LocationType represents a location type for assets.

const (
	TypeUndefined LocationType = iota
	TypeItem
	TypeOther
	TypeSolarSystem
	TypeStation
	TypeUnknown
)

type MarketOrderState added in v0.41.0

type MarketOrderState uint

MarketOrderState represents the current state of a market order.

const (
	OrderUndefined MarketOrderState = iota // zero value
	OrderCancelled
	OrderExpired
	OrderOpen
	OrderUnknown // status can not be determined
)

func (MarketOrderState) String added in v0.41.0

func (mos MarketOrderState) String() string

type MembershipHistoryItem added in v0.15.0

type MembershipHistoryItem struct {
	EndDate      time.Time
	Days         int
	IsDeleted    optional.Optional[bool]
	IsOldest     bool
	Organization *EveEntity
	RecordID     int64
	StartDate    time.Time
}

func (MembershipHistoryItem) OrganizationName added in v0.15.0

func (hi MembershipHistoryItem) OrganizationName() string

type PinForecast added in v0.76.0

type PinForecast struct {
	Capacity         optional.Optional[float64] // m3, only for storage pins
	CapacityUsed     float64                    // m3
	Contents         map[int64]int64            // amount by type ID
	Demands          map[int64]int64            // input quantity per cycle by type ID, only for factories
	ExtractorOutputs []int64                    // predicted output per cycle of the program, only for extractors
	IsActive         bool
	LastCycleStart   optional.Optional[time.Time] // start of last production cycle, only for factories
	LastRunTime      optional.Optional[time.Time] // for idle factories the last input check, not the last production
	OutputQuantity   int64                        // per cycle, only for factories
	OutputTypeID     int64                        // only for factories
	Status           PinStatus
}

PinForecast is the estimated state of a planet pin.

func (PinForecast) ExtractorCycleOutput added in v0.76.0

func (pf PinForecast) ExtractorCycleOutput(i int) optional.Optional[int64]

ExtractorCycleOutput returns the predicted output of cycle i of the extractor program or nothing when i is outside the program.

func (PinForecast) ExtractorTotalOutput added in v0.76.0

func (pf PinForecast) ExtractorTotalOutput() int64

ExtractorTotalOutput returns the predicted output of the whole extractor program.

type PinStatus added in v0.76.0

type PinStatus uint

PinStatus is the status of a planet pin.

const (
	PinStatusUndefined PinStatus = iota
	PinExtracting
	PinExtractorExpired
	PinExtractorInactive
	PinFactoryIdle
	PinInputNotRouted
	PinNotSetup
	PinOutputNotRouted
	PinProducing
	PinStatic
	PinStorageFull
)

func (PinStatus) Color added in v0.76.0

func (s PinStatus) Color() fyne.ThemeColorName

func (PinStatus) Display added in v0.76.0

func (s PinStatus) Display() string

func (PinStatus) IndicatorColor added in v0.76.0

func (s PinStatus) IndicatorColor() fyne.ThemeColorName

IndicatorColor returns the color for indicating the status, e.g. in a symbol.

func (PinStatus) IsProblem added in v0.76.0

func (s PinStatus) IsProblem() bool

IsProblem reports whether the pin needs the player's attention.

func (PinStatus) String added in v0.76.0

func (s PinStatus) String() string

type PlanetPin added in v0.8.0

type PlanetPin struct {
	ID                   int64
	Contents             []*PlanetPinContent
	ExpiryTime           optional.Optional[time.Time]
	ExtractorCycleTime   optional.Optional[time.Duration]
	ExtractorHeadRadius  optional.Optional[float64]
	ExtractorNumHeads    optional.Optional[int64]
	ExtractorProductType optional.Optional[*EveType]
	ExtractorQtyPerCycle optional.Optional[int64]
	FactorySchematic     optional.Optional[*EveSchematic]
	InstallTime          optional.Optional[time.Time]
	LastCycleStart       optional.Optional[time.Time]
	Schematic            optional.Optional[*EveSchematic]
	Type                 *EveType
}

func (PlanetPin) Designator added in v0.76.0

func (pp PlanetPin) Designator() string

Designator returns the designator of a pin as shown in game, e.g. "H6-3IS". Same algorithm as RIFT (Nohus, used with permission).

func (PlanetPin) IsExtracting added in v0.23.0

func (pp PlanetPin) IsExtracting() bool

func (PlanetPin) IsProducing added in v0.23.0

func (pp PlanetPin) IsProducing() bool

func (PlanetPin) ProcessorSchematic added in v0.76.0

func (pp PlanetPin) ProcessorSchematic() (*EveSchematic, bool)

ProcessorSchematic returns the schematic of a processor.

type PlanetPinContent added in v0.76.0

type PlanetPinContent struct {
	Amount int64
	Type   *EveType
}

PlanetPinContent is a commodity stored in a planet pin.

type PlanetRoute added in v0.76.0

type PlanetRoute struct {
	ContentType      *EveType
	DestinationPinID int64
	Quantity         int64
	RouteID          int64
	SourcePinID      int64
}

PlanetRoute is a route for moving commodities between two pins of a colony.

type Position

type Position struct {
	X float64
	Y float64
	Z float64
}

Position is a position in 3D space.

type Role added in v0.26.0

type Role uint

A Role is the in-game role of a character in a corporation.

const (
	RoleUndefined Role = iota
	RoleAccountant
	RoleAccountTake1
	RoleAccountTake2
	RoleAccountTake3
	RoleAccountTake4
	RoleAccountTake5
	RoleAccountTake6
	RoleAccountTake7
	RoleAuditor
	RoleBrandManager
	RoleCommunicationsOfficer
	RoleConfigEquipment
	RoleConfigStarbaseEquipment
	RoleContainerTake1
	RoleContainerTake2
	RoleContainerTake3
	RoleContainerTake4
	RoleContainerTake5
	RoleContainerTake6
	RoleContainerTake7
	RoleContractManager
	RoleDeliveriesContainerTake
	RoleDeliveriesQuery
	RoleDeliveriesTake
	RoleDiplomat
	RoleDirector
	RoleFactoryManager
	RoleFittingManager
	RoleHangarQuery1
	RoleHangarQuery2
	RoleHangarQuery3
	RoleHangarQuery4
	RoleHangarQuery5
	RoleHangarQuery6
	RoleHangarQuery7
	RoleHangarTake1
	RoleHangarTake2
	RoleHangarTake3
	RoleHangarTake4
	RoleHangarTake5
	RoleHangarTake6
	RoleHangarTake7
	RoleJuniorAccountant
	RolePersonnelManager
	RoleProjectManager
	RoleRentFactoryFacility
	RoleRentOffice
	RoleRentResearchFacility
	RoleSecurityOfficer
	RoleSkillPlanManager
	RoleStarbaseDefenseOperator
	RoleStarbaseFuelTechnician
	RoleStationManager
	RoleTrader
)

func (Role) Display added in v0.26.0

func (cp Role) Display() string

func (Role) String added in v0.26.0

func (cp Role) String() string

type SearchCategory added in v0.17.0

type SearchCategory string
const (
	SearchAgent         SearchCategory = "agent"
	SearchAlliance      SearchCategory = "alliance"
	SearchCharacter     SearchCategory = "character"
	SearchConstellation SearchCategory = "constellation"
	SearchCorporation   SearchCategory = "corporation"
	SearchFaction       SearchCategory = "faction"
	SearchRegion        SearchCategory = "region"
	SearchSolarSystem   SearchCategory = "solar_system"
	SearchStation       SearchCategory = "station"
	SearchType          SearchCategory = "inventory_type"
)

func SearchCategories added in v0.17.0

func SearchCategories() []SearchCategory

SearchCategories returns all available search categories

func (SearchCategory) String added in v0.17.0

func (x SearchCategory) String() string

type SectionStatus

type SectionStatus struct {
	CompletedAt  time.Time
	ContentHash  string
	ErrorMessage string
	Section      section
	StartedAt    time.Time
	UpdatedAt    time.Time
}

A SectionStatus represents the latest status of an update from ESI for a section. This type contains the shared functionality among all kinds of section status.

func (SectionStatus) HasContent added in v0.35.0

func (s SectionStatus) HasContent() bool

HasContent reports whether a section has data.

func (SectionStatus) HasError added in v0.27.0

func (s SectionStatus) HasError() bool

HasError reports whether the last update of a section resulted in an error.

func (SectionStatus) IsExpired

func (s SectionStatus) IsExpired() bool

func (SectionStatus) IsMissing

func (s SectionStatus) IsMissing() bool

IsMissing reports whether this section has ever been successfully updated.

func (SectionStatus) WasUpdatedWithinErrorTimedOut added in v0.35.0

func (s SectionStatus) WasUpdatedWithinErrorTimedOut() bool

WasUpdatedWithinErrorTimedOut reports whether the last update was within the error timeout.

type Signals added in v0.63.0

type Signals struct {
	// The app is initialized
	AppInit signals.Signal[struct{}]

	// A character was added.
	CharacterAdded signals.Signal[*Character]

	// A Character field has changed (e.g. number of unread messages).
	CharacterChanged signals.Signal[int64]

	// A character was removed.
	CharacterRemoved signals.Signal[*EntityShort]

	// A character section has changed after an update from ESI.
	CharacterSectionChanged signals.Signal[CharacterSectionUpdated]

	// A character section has been updated from ESI.
	CharacterSectionUpdated signals.Signal[CharacterSectionUpdated]

	// A corporation has been added or removed.
	CorporationsChanged signals.Signal[struct{}]

	// A corporation section has changed after an update from ESI.
	CorporationSectionChanged signals.Signal[CorporationSectionUpdated]

	// A corporation section has been updated from ESI.
	CorporationSectionUpdated signals.Signal[CorporationSectionUpdated]

	// The current character was exchanged with another character or reset.
	CurrentCharacterExchanged signals.Signal[*Character]

	// The current corporation was exchanged with another corporation or reset.
	CurrentCorporationExchanged signals.Signal[*Corporation]

	// Application data has has been updated.
	DataUpdated signals.Signal[string]

	// An EveUniverse section has changed after an update from ESI.
	EveUniverseSectionChanged signals.Signal[EveUniverseSectionUpdated]

	// An EveUniverse section has been updated after an update from ESI.
	EveUniverseSectionUpdated signals.Signal[EveUniverseSectionUpdated]

	// Ticker for dynamic UI refresh has expired.
	RefreshTickerExpired signals.Signal[struct{}]

	// A tag as been added, removed or renamed.
	TagsChanged signals.Signal[struct{}]

	// A section update has started.
	UpdateStarted signals.Signal[string]

	// A section update has stopped.
	UpdateStopped signals.Signal[string]
	// contains filtered or unexported fields
}

Signals represents the app's event signals. It is safe for concurrent use.

func NewSignals added in v0.63.0

func NewSignals() *Signals

func (*Signals) BeginShutdown added in v0.76.0

func (s *Signals) BeginShutdown()

BeginShutdown makes Emit a no-op on every signal.

Needed to prevent making additional Fyne API calls during shutdown.

func (*Signals) IsShuttingDown added in v0.76.0

func (s *Signals) IsShuttingDown() bool

func (*Signals) PseudoUniqueID added in v0.63.0

func (s *Signals) PseudoUniqueID() string

func (*Signals) UniqueKey added in v0.63.0

func (s *Signals) UniqueKey() string

UniqueKey returns a unique key for registering listeners.

type SolarSystemSecurityType

type SolarSystemSecurityType uint
const (
	NullSec SolarSystemSecurityType = iota
	LowSec
	HighSec
	SuperHighSec
)

func NewSolarSystemSecurityTypeFromValue added in v0.18.1

func NewSolarSystemSecurityTypeFromValue(v float32) SolarSystemSecurityType

func (SolarSystemSecurityType) ToColorName added in v0.15.0

func (SolarSystemSecurityType) ToImportance added in v0.8.0

func (t SolarSystemSecurityType) ToImportance() widget.Importance

ToImportance returns the importance value for a security type.

type StandingCategory added in v0.63.0

type StandingCategory uint
const (
	TerribleStanding StandingCategory = iota + 1
	BadStanding
	NeutralStanding
	GoodStanding
	ExcellentStanding
)

func NewStandingCategory added in v0.63.0

func NewStandingCategory(v float64) StandingCategory

func (StandingCategory) String added in v0.63.0

func (sc StandingCategory) String() string

type Status

type Status uint
const (
	StatusUnknown Status = iota
	StatusError
	StatusOK
	StatusPartial
	StatusWorking
)

func (Status) ToImportance added in v0.8.0

func (s Status) ToImportance() widget.Importance

func (Status) ToImportance2 added in v0.13.0

func (s Status) ToImportance2() widget.Importance

type StatusSummary

type StatusSummary struct {
	Current   int
	Errors    int
	IsRunning bool
	Skipped   int
	Missing   int
	Total     int
}

func (StatusSummary) Display

func (ss StatusSummary) Display() string

func (StatusSummary) DisplayShort added in v0.36.0

func (ss StatusSummary) DisplayShort() string

func (StatusSummary) ProgressP

func (ss StatusSummary) ProgressP() float64

func (StatusSummary) Status

func (ss StatusSummary) Status() Status

type StructureService added in v0.43.0

type StructureService struct {
	CorporationStructureID int64
	Name                   string
	State                  StructureServiceState
}

type StructureServiceState added in v0.43.0

type StructureServiceState uint
const (
	StructureServiceStateUndefined StructureServiceState = iota
	StructureServiceStateOnline
	StructureServiceStateOffline
	StructureServiceStateCleanup
)

type StructureState added in v0.43.0

type StructureState uint
const (
	StructureStateUndefined StructureState = iota
	StructureStateAnchoring
	StructureStateAnchorVulnerable
	StructureStateArmorReinforce
	StructureStateArmorVulnerable
	StructureStateDeployVulnerable
	StructureStateFittingInvulnerable
	StructureStateHullReinforce
	StructureStateHullVulnerable
	StructureStateOnlineDeprecated
	StructureStateOnliningVulnerable
	StructureStateShieldVulnerable
	StructureStateUnanchored
	StructureStateUnknown
)

func (StructureState) Color added in v0.43.0

func (ss StructureState) Color() fyne.ThemeColorName

func (StructureState) Display added in v0.43.0

func (ss StructureState) Display() string

func (StructureState) DisplayShort added in v0.43.0

func (ss StructureState) DisplayShort() string

func (StructureState) IsReinforce added in v0.43.0

func (ss StructureState) IsReinforce() bool

func (StructureState) String added in v0.43.0

func (ss StructureState) String() string

type Token added in v0.27.0

type Token struct {
	AccessToken   string
	CharacterID   int64
	CharacterName string
	ExpiresAt     time.Time
	RefreshToken  string
	Scopes        []string
	TokenType     string
}

Token represents an OAuth token for a character in EVE Online.

Directories

Path Synopsis
Package asset provides data structures to analyze and process asset data.
Package asset provides data structures to analyze and process asset data.
Package characterservice contains the EVE character service.
Package characterservice contains the EVE character service.
Package colonysim estimates the current state of a PI colony by simulating it forward in time from its last ESI snapshot.
Package colonysim estimates the current state of a PI colony by simulating it forward in time from its last ESI snapshot.
Package corporationservice contains the corporation service.
Package corporationservice contains the corporation service.
Package esistatusservice contains the ESI status service.
Package esistatusservice contains the ESI status service.
Package eveimageservice contains the EVE image service.
Package eveimageservice contains the EVE image service.
Package evenotification contains the business logic for dealing with EVE Online notifications.
Package evenotification contains the business logic for dealing with EVE Online notifications.
notification2
Package notification2 defines types for parsing data of Eve notification types.
Package notification2 defines types for parsing data of Eve notification types.
Package eveuniverseservice contains EVE universe service.
Package eveuniverseservice contains EVE universe service.
Package pcache implements a persistent cache.
Package pcache implements a persistent cache.
Package settings provides an API for reading and writing the app's settings.
Package settings provides an API for reading and writing the app's settings.
Package statuscache provides cached access to the current update status of entity sections.
Package statuscache provides cached access to the current update status of entity sections.
Package storage contains the logic for storing application data into a local SQLite database.
Package storage contains the logic for storing application data into a local SQLite database.
Package testutil contains utilities for writing tests.
Package testutil contains utilities for writing tests.
testdouble
Package testdouble provides test doubles of services.
Package testdouble provides test doubles of services.
ui
Package ui contains the UI components.
Package ui contains the UI components.
charactermanager
Package charactermanager provides a window for managing Characters.
Package charactermanager provides a window for managing Characters.
core
Package core provides the core components to construct the UI.
Package core provides the core components to construct the UI.
filedialog
Package filedialog shows file dialogs, in a window on desktop and natively on mobile.
Package filedialog shows file dialogs, in a window on desktop and natively on mobile.
gamesearch
Package gamesearch provides widgets for building the game search UI.
Package gamesearch provides widgets for building the game search UI.
infoviewer
Package infoviewer provides a window for displaying information about Eve objects.
Package infoviewer provides a window for displaying information about Eve objects.
mailer
Package mailer provides the functionality to create a new window for composing and sending mail.
Package mailer provides the functionality to create a new window for composing and sending mail.
screens
Package screens provides UI components to build the various screens for character and corporation features
Package screens provides UI components to build the various screens for character and corporation features
settings
Package settings provides a window to view and configure user settings.
Package settings provides a window to view and configure user settings.
updatestatus
Package updatestatus shows the current update status in a window.
Package updatestatus shows the current update status in a window.

Jump to

Keyboard shortcuts

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