Documentation
¶
Index ¶
- Constants
- Variables
- func ESIDefaultKeyfunc(ctx context.Context) (jwt.Keyfunc, error)
- func IsExpired(token *oauth2.Token) bool
- func NewAuthenticatedESIClient(ctx context.Context, config *Config, token *oauth2.Token, userAgent string) *esi.APIClient
- func NewESIClientWithOptions(httpClient *http.Client, options ClientOptions) *esi.APIClient
- func NewPublicESIClient(userAgent string) *esi.APIClient
- func TokenFromJSON(jsonStr string) (*oauth2.Token, error)
- func TokenToJSON(token *oauth2.Token) (string, error)
- type AcceptedAlly
- type AcceptedSurrender
- type AllMaintenanceBillMsg
- type AllWarCorpJoinedAllianceMsg
- type AllWarDeclaredMsg
- type AllWarInvalidatedMsg
- type AllWarRetractedMsg
- type AllWarSurrenderMsg
- type AllianceCapitalChanged
- type AllyContractCancelled
- type AllyJoinedWarAggressorMsg
- type AllyJoinedWarAllyMsg
- type AllyJoinedWarDefenderMsg
- type BillOutOfMoneyMsg
- type BillPaidCorpAllMsg
- type BountyClaimMsg
- type BountyESSShared
- type BountyESSTaken
- type BountyPlacedAlliance
- type BountyPlacedChar
- type BountyPlacedCorp
- type BountyYourBountyClaimed
- type BuddyConnectContactAdd
- type CharAppAcceptMsg
- type CharAppRejectMsg
- type CharAppWithdrawMsg
- type CharLeftCorpMsg
- type CharMedalMsg
- type CharTerminationMsg
- type ClientOptions
- type CloneActivationMsg
- type CloneActivationMsg2
- type CloneMovedMsg
- type CloneRevokedMsg2
- type Config
- func (c *Config) AuthURL(state string, scopes []string) string
- func (c *Config) Client(ctx context.Context, token *oauth2.Token) *http.Client
- func (c *Config) Exchange(ctx context.Context, code, state string, expectedState string) (*oauth2.Token, *ESIJWTClaims, error)
- func (c *Config) ParseClaims(token *oauth2.Token) (*ESIJWTClaims, error)
- func (c *Config) RefreshToken(ctx context.Context, token *oauth2.Token) (*oauth2.Token, *ESIJWTClaims, error)
- func (c *Config) TokenSource(ctx context.Context, token *oauth2.Token) oauth2.TokenSource
- type ContactAdd
- type ContactEdit
- type ContainerPasswordMsg
- type CorpAllBillMsg
- type CorpAllBillMsgV2
- type CorpAppAcceptMsg
- type CorpAppInvitedMsg
- type CorpAppNewMsg
- type CorpAppRejectCustomMsg
- type CorpAppRejectMsg
- type CorpDividendMsg
- type CorpFriendlyFireDisableTimerCompleted
- type CorpFriendlyFireDisableTimerStarted
- type CorpFriendlyFireEnableTimerCompleted
- type CorpFriendlyFireEnableTimerStarted
- type CorpKicked
- type CorpLiquidationMsg
- type CorpNewCEOMsg
- type CorpNewsMsg
- type CorpTaxChangeMsg
- type CorpVoteMsg
- type CorpWarDeclaredMsg
- type CorpWarFightingLegalMsg
- type CorpWarInvalidatedMsg
- type CorpWarRetractedMsg
- type CorpWarSurrenderMsg
- type CustomsMsg
- type DeclareWar
- type ESIJWTClaims
- type EntosisCaptureStarted
- type FWAllianceWarningMsg
- type FWCharRankGainMsg
- type FWCharRankLossMsg
- type FWCorpJoinMsg
- type FWCorpKickMsg
- type FWCorpLeaveMsg
- type FWCorpWarningMsg
- type FacWarCorpJoinRequestMsg
- type FacWarCorpJoinWithdrawMsg
- type FacWarCorpLeaveRequestMsg
- type FacWarCorpLeaveWithdrawMsg
- type FacWarLPDisqualifiedEvent
- type FacWarLPDisqualifiedKill
- type FacWarLPPayoutEvent
- type FacWarLPPayoutKill
- type GameTimeAdded
- type GameTimeReceived
- type GameTimeSent
- type GiftReceived
- type IHubDestroyedByBillFailure
- type IncursionCompletedMsg
- type IndustryTeamAuctionLost
- type InfrastructureHubBillAboutToExpire
- type InsuranceExpirationMsg
- type InsuranceFirstShipMsg
- type InsuranceInvalidatedMsg
- type InsuranceIssuedMsg
- type InsurancePayoutMsg
- type JumpCloneDeletedMsg1
- type JumpCloneDeletedMsg2
- type KillReportFinalBlow
- type KillReportVictim
- type KillRightAvailable
- type KillRightAvailableOpen
- type KillRightEarned
- type KillRightUnavailable
- type KillRightUnavailableOpen
- type KillRightUsed
- type LocateCharMsg
- type MadeWarMutual
- type MercOfferedNegotiationMsg
- type MercenaryDenAttacked
- type MercenaryDenReinforced
- type MissionOfferExpirationMsg
- type MoonminingAutomaticFracture
- type MoonminingExtractionCancelled
- type MoonminingExtractionFinished
- type MoonminingExtractionStarted
- type MoonminingLaserFired
- type NPCStandingsGained
- type NPCStandingsLost
- type NotificationTypeMoonminingExtractionStarteddeprecated
- type OfferedSurrender
- type OfferedToAlly
- type OldLscMessages
- type OperationFinished
- type OrbitalAttacked
- type OrbitalReinforced
- type OwnershipTransferred
- type OwnershipTransferredV2
- type ReimbursementMsg
- type ResearchMissionAvailableMsg
- type RetractsWar
- type SeasonalChallengeCompleted
- type SkyhookLostShields
- type SkyhookUnderAttack
- type SovAllClaimAquiredMsg
- type SovAllClaimLostMsg
- type SovCommandNodeEventStarted
- type SovStationEnteredFreeport
- type SovStructureDestroyed
- type SovStructureReinforced
- type SovStructureSelfDestructCancel
- type SovStructureSelfDestructFinished
- type SovStructureSelfDestructRequested
- type SovereigntyIHDamageMsg
- type SovereigntySBUDamageMsg
- type SovereigntyTCUDamageMsg
- type StationServiceDisabled
- type StationServiceEnabled
- type StringOrArray
- type StructureAnchoring
- type StructureDestroyed
- type StructureFuelAlert
- type StructureImpendingAbandonmentAssetsAtRisk
- type StructureItemsDelivered
- type StructureItemsMovedToSafety
- type StructureLostArmor
- type StructureLostShields
- type StructureOnline
- type StructureServicesOffline
- type StructureUnanchoring
- type StructureUnderAttack
- type StructureWentHighPower
- type StructureWentLowPower
- type StructuresReinforcementChanged
- type TowerAlertMsg
- type TowerResourceAlertMsg
- type WarAdopted
- type WarAllyOfferDeclinedMsg
- type WarDeclared
- type WarHQRemovedFromSpace
- type WarInherited
- type WarInvalid
- type WarRetractedByConcord
- type WarSurrenderDeclinedMsg
- type WarSurrenderOfferMsg
Constants ¶
const ( ScopeAccessReadListsV1 = "esi-access.read_lists.v1" ScopeActivitiesReadCharacterV1 = "esi-activities.read_character.v1" ScopeAlliancesReadContactsV1 = "esi-alliances.read_contacts.v1" ScopeAssetsReadAssetsV1 = "esi-assets.read_assets.v1" ScopeAssetsReadCorporationAssetsV1 = "esi-assets.read_corporation_assets.v1" ScopeCalendarReadCalendarEventsV1 = "esi-calendar.read_calendar_events.v1" ScopeCalendarRespondCalendarEventsV1 = "esi-calendar.respond_calendar_events.v1" ScopeCharactersReadAgentsResearchV1 = "esi-characters.read_agents_research.v1" ScopeCharactersReadBlueprintsV1 = "esi-characters.read_blueprints.v1" ScopeCharactersReadContactsV1 = "esi-characters.read_contacts.v1" ScopeCharactersReadCorporationRolesV1 = "esi-characters.read_corporation_roles.v1" ScopeCharactersReadFatigueV1 = "esi-characters.read_fatigue.v1" ScopeCharactersReadFreelanceJobsV1 = "esi-characters.read_freelance_jobs.v1" ScopeCharactersReadFwStatsV1 = "esi-characters.read_fw_stats.v1" ScopeCharactersReadLoyaltyV1 = "esi-characters.read_loyalty.v1" ScopeCharactersReadMedalsV1 = "esi-characters.read_medals.v1" ScopeCharactersReadNotificationsV1 = "esi-characters.read_notifications.v1" ScopeCharactersReadStandingsV1 = "esi-characters.read_standings.v1" ScopeCharactersReadTitlesV1 = "esi-characters.read_titles.v1" ScopeCharactersWriteContactsV1 = "esi-characters.write_contacts.v1" ScopeClonesReadClonesV1 = "esi-clones.read_clones.v1" ScopeClonesReadImplantsV1 = "esi-clones.read_implants.v1" ScopeContractsReadCharacterContractsV1 = "esi-contracts.read_character_contracts.v1" ScopeContractsReadCorporationContractsV1 = "esi-contracts.read_corporation_contracts.v1" ScopeCorporationsReadBlueprintsV1 = "esi-corporations.read_blueprints.v1" ScopeCorporationsReadContactsV1 = "esi-corporations.read_contacts.v1" ScopeCorporationsReadContainerLogsV1 = "esi-corporations.read_container_logs.v1" ScopeCorporationsReadCorporationMembershipV1 = "esi-corporations.read_corporation_membership.v1" ScopeCorporationsReadDivisionsV1 = "esi-corporations.read_divisions.v1" ScopeCorporationsReadFacilitiesV1 = "esi-corporations.read_facilities.v1" ScopeCorporationsReadFreelanceJobsV1 = "esi-corporations.read_freelance_jobs.v1" ScopeCorporationsReadFwStatsV1 = "esi-corporations.read_fw_stats.v1" ScopeCorporationsReadMedalsV1 = "esi-corporations.read_medals.v1" ScopeCorporationsReadProjectsV1 = "esi-corporations.read_projects.v1" ScopeCorporationsReadStandingsV1 = "esi-corporations.read_standings.v1" ScopeCorporationsReadStarbasesV1 = "esi-corporations.read_starbases.v1" ScopeCorporationsReadStructuresV1 = "esi-corporations.read_structures.v1" ScopeCorporationsReadTitlesV1 = "esi-corporations.read_titles.v1" ScopeCorporationsTrackMembersV1 = "esi-corporations.track_members.v1" ScopeFittingsReadFittingsV1 = "esi-fittings.read_fittings.v1" ScopeFittingsWriteFittingsV1 = "esi-fittings.write_fittings.v1" ScopeFleetsReadFleetV1 = "esi-fleets.read_fleet.v1" ScopeFleetsWriteFleetV1 = "esi-fleets.write_fleet.v1" ScopeIndustryReadCharacterJobsV1 = "esi-industry.read_character_jobs.v1" ScopeIndustryReadCharacterMiningV1 = "esi-industry.read_character_mining.v1" ScopeIndustryReadCorporationJobsV1 = "esi-industry.read_corporation_jobs.v1" ScopeIndustryReadCorporationMiningV1 = "esi-industry.read_corporation_mining.v1" ScopeKillmailsReadCorporationKillmailsV1 = "esi-killmails.read_corporation_killmails.v1" ScopeKillmailsReadKillmailsV1 = "esi-killmails.read_killmails.v1" ScopeLocationReadLocationV1 = "esi-location.read_location.v1" ScopeLocationReadOnlineV1 = "esi-location.read_online.v1" ScopeLocationReadShipTypeV1 = "esi-location.read_ship_type.v1" ScopeMailOrganizeMailV1 = "esi-mail.organize_mail.v1" ScopeMailReadMailV1 = "esi-mail.read_mail.v1" ScopeMailSendMailV1 = "esi-mail.send_mail.v1" ScopeMarketsReadCharacterOrdersV1 = "esi-markets.read_character_orders.v1" ScopeMarketsReadCorporationOrdersV1 = "esi-markets.read_corporation_orders.v1" ScopeMarketsStructureMarketsV1 = "esi-markets.structure_markets.v1" ScopePlanetsManagePlanetsV1 = "esi-planets.manage_planets.v1" ScopePlanetsReadCustomsOfficesV1 = "esi-planets.read_customs_offices.v1" ScopeSearchSearchStructuresV1 = "esi-search.search_structures.v1" ScopeSkillsReadSkillqueueV1 = "esi-skills.read_skillqueue.v1" ScopeSkillsReadSkillsV1 = "esi-skills.read_skills.v1" ScopeStructuresReadCharacterV1 = "esi-structures.read_character.v1" ScopeStructuresReadCorporationV1 = "esi-structures.read_corporation.v1" ScopeUiOpenWindowV1 = "esi-ui.open_window.v1" ScopeUiWriteWaypointV1 = "esi-ui.write_waypoint.v1" ScopeUniverseReadStructuresV1 = "esi-universe.read_structures.v1" ScopeWalletReadCharacterWalletV1 = "esi-wallet.read_character_wallet.v1" ScopeWalletReadCorporationWalletsV1 = "esi-wallet.read_corporation_wallets.v1" )
Variables ¶
var ( ErrInvalidToken = errors.New("invalid or expired token") ErrInvalidState = errors.New("invalid OAuth2 state parameter") ErrMissingCode = errors.New("missing authorization code") ErrTokenRefresh = errors.New("failed to refresh token") )
var ( // ContextOAuth2 is the context key for GoESI authentication. Pass a tokenSource with this key to a context for an ESI API Call ContextOAuth2 = esi.ContextOAuth2 )
Context keys for ESI authentication
Functions ¶
func ESIDefaultKeyfunc ¶
ESIDefaultKeyfunc creates a default keyfunc that fetches ESI JWT signing keys from JWKS
func NewAuthenticatedESIClient ¶
func NewAuthenticatedESIClient(ctx context.Context, config *Config, token *oauth2.Token, userAgent string) *esi.APIClient
NewAuthenticatedESIClient creates a new ESI API client with OAuth2 authentication
func NewESIClientWithOptions ¶
func NewESIClientWithOptions(httpClient *http.Client, options ClientOptions) *esi.APIClient
NewESIClientWithOptions creates a new ESI API client with custom options
func NewPublicESIClient ¶
NewPublicESIClient creates a new ESI API client for public endpoints (no authentication required)
func TokenFromJSON ¶
TokenFromJSON helper function to convert stored JSON to a token.
Types ¶
type AcceptedAlly ¶
type AcceptedSurrender ¶
type AllMaintenanceBillMsg ¶
type AllWarDeclaredMsg ¶
type AllWarInvalidatedMsg ¶
type AllWarRetractedMsg ¶
type AllWarSurrenderMsg ¶
type AllianceCapitalChanged ¶
type AllyContractCancelled ¶
type AllyJoinedWarAllyMsg ¶
type BillOutOfMoneyMsg ¶
type BillPaidCorpAllMsg ¶
type BountyClaimMsg ¶
type BountyESSShared ¶
type BountyESSShared struct {
}
type BountyESSTaken ¶
type BountyPlacedAlliance ¶
type BountyPlacedChar ¶
type BountyPlacedCorp ¶
type BountyYourBountyClaimed ¶
type BuddyConnectContactAdd ¶
type CharAppAcceptMsg ¶
type CharAppRejectMsg ¶
type CharAppWithdrawMsg ¶
type CharLeftCorpMsg ¶
type CharMedalMsg ¶
type CharTerminationMsg ¶
type ClientOptions ¶
ClientOptions holds configuration options for ESI client creation
type CloneActivationMsg ¶
type CloneActivationMsg struct {
CloneBought int32 `yaml:"cloneBought"`
CloneStationID int64 `yaml:"cloneStationID"`
CloneTypeID int64 `yaml:"cloneTypeID"`
CorpStationID int64 `yaml:"corpStationID"`
LastCloned int64 `yaml:"lastCloned"`
PodKillerID int64 `yaml:"podKillerID"`
SkillID int64 `yaml:"skillID"`
SkillPointsLost int32 `yaml:"skillPointsLost"`
}
type CloneActivationMsg2 ¶
type CloneMovedMsg ¶
type CloneRevokedMsg2 ¶
type Config ¶
type Config struct {
ClientID string
RedirectURL string
JWTKeyFunc jwt.Keyfunc
// contains filtered or unexported fields
}
Config holds the OAuth2 configuration for ESI authentication
func (*Config) Exchange ¶
func (c *Config) Exchange(ctx context.Context, code, state string, expectedState string) (*oauth2.Token, *ESIJWTClaims, error)
Exchange exchanges the authorization code for an access token and parses JWT claims
func (*Config) ParseClaims ¶
func (c *Config) ParseClaims(token *oauth2.Token) (*ESIJWTClaims, error)
ParseClaims extracts and validates claims from an oauth2.Token's access token
func (*Config) RefreshToken ¶
func (c *Config) RefreshToken(ctx context.Context, token *oauth2.Token) (*oauth2.Token, *ESIJWTClaims, error)
RefreshToken refreshes an expired access token and parses the new JWT claims
func (*Config) TokenSource ¶
TokenSource returns a TokenSource that automatically refreshes the token as needed
type ContactAdd ¶
type ContactEdit ¶
type ContainerPasswordMsg ¶
type CorpAllBillMsg ¶
type CorpAllBillMsg struct {
Amount float64 `yaml:"amount"`
BillTypeID int64 `yaml:"billTypeID"`
CreditorID int64 `yaml:"creditorID"`
CurrentDate int64 `yaml:"currentDate"`
DebtorID int64 `yaml:"debtorID"`
DueDate int64 `yaml:"dueDate"`
ExternalID int64 `yaml:"externalID"`
ExternalID2 int64 `yaml:"externalID2"`
}
type CorpAllBillMsgV2 ¶
type CorpAllBillMsgV2 struct {
Amount float64 `yaml:"amount"`
BillTypeID int64 `yaml:"billTypeID"`
CreditorID int64 `yaml:"creditorID"`
CurrentDate int64 `yaml:"currentDate"`
DebtorID int64 `yaml:"debtorID"`
DueDate int64 `yaml:"dueDate"`
ExternalID int64 `yaml:"externalID"`
ExternalID2 int64 `yaml:"externalID2"`
}
CorpAllBillMsgV2 represents the updated version for this notification type. Use CorpAllBillMsg to unmarshal older notifications.
type CorpAppAcceptMsg ¶
type CorpAppInvitedMsg ¶
type CorpAppNewMsg ¶
type CorpAppRejectCustomMsg ¶
type CorpAppRejectMsg ¶
type CorpDividendMsg ¶
type CorpFriendlyFireDisableTimerCompleted ¶
type CorpFriendlyFireDisableTimerCompleted struct {
CorpID int64 `yaml:"corpID"`
}
type CorpFriendlyFireEnableTimerCompleted ¶
type CorpFriendlyFireEnableTimerCompleted struct {
CorpID int64 `yaml:"corpID"`
}
type CorpKicked ¶
type CorpKicked struct {
CorpID int64 `yaml:"corpID"`
}
type CorpLiquidationMsg ¶
type CorpNewCEOMsg ¶
type CorpNewsMsg ¶
type CorpTaxChangeMsg ¶
type CorpVoteMsg ¶
type CorpWarDeclaredMsg ¶
type CorpWarFightingLegalMsg ¶
type CorpWarInvalidatedMsg ¶
type CorpWarRetractedMsg ¶
type CorpWarSurrenderMsg ¶
type CustomsMsg ¶
type CustomsMsg struct {
FactionID int64 `yaml:"factionID"`
LostList []struct {
Fine float64 `yaml:"fine"`
Penalty float64 `yaml:"penalty"`
Quantity int32 `yaml:"quantity"`
TypeID int64 `yaml:"typeID"`
} `yaml:"lostList"`
SecurityLevel float64 `yaml:"securityLevel"`
ShouldAttack int32 `yaml:"shouldAttack"`
ShouldConfiscate int32 `yaml:"shouldConfiscate"`
SolarSystemID int64 `yaml:"solarSystemID"`
StandingDivision float64 `yaml:"standingDivision"`
}
type DeclareWar ¶
type ESIJWTClaims ¶
type ESIJWTClaims struct {
jwt.RegisteredClaims
// ESI-specific claims
Scopes StringOrArray `json:"scp"`
Name string `json:"name"`
Owner string `json:"owner"`
Kid string `json:"kid"`
Azp string `json:"azp"`
Tenant string `json:"tenant"`
Tier string `json:"tier"`
Region string `json:"region"`
}
ESIJWTClaims represents the claims in an ESI JWT token with embedded standard claims
func (*ESIJWTClaims) CharacterID ¶
func (claims *ESIJWTClaims) CharacterID() (int64, error)
CharacterID extracts the character ID from the JWT subject
type EntosisCaptureStarted ¶
type FWAllianceWarningMsg ¶
type FWCharRankGainMsg ¶
type FWCharRankLossMsg ¶
type FWCorpJoinMsg ¶
type FWCorpKickMsg ¶
type FWCorpLeaveMsg ¶
type FWCorpWarningMsg ¶
type FacWarLPPayoutEvent ¶
type FacWarLPPayoutKill ¶
type GameTimeAdded ¶
type GameTimeAdded struct {
}
type GameTimeReceived ¶
type GameTimeSent ¶
type GiftReceived ¶
type IncursionCompletedMsg ¶
type IndustryTeamAuctionLost ¶
type InsuranceExpirationMsg ¶
type InsuranceFirstShipMsg ¶
type InsuranceInvalidatedMsg ¶
type InsuranceIssuedMsg ¶
type InsurancePayoutMsg ¶
type JumpCloneDeletedMsg1 ¶
type JumpCloneDeletedMsg2 ¶
type KillReportFinalBlow ¶
type KillReportVictim ¶
type KillRightAvailable ¶
type KillRightAvailableOpen ¶
type KillRightEarned ¶
type KillRightEarned struct {
CharID int64 `yaml:"charID"`
}
type KillRightUnavailable ¶
type KillRightUnavailable struct {
}
type KillRightUnavailableOpen ¶
type KillRightUnavailableOpen struct {
}
type KillRightUsed ¶
type KillRightUsed struct {
CharID int64 `yaml:"charID"`
}
type LocateCharMsg ¶
type LocateCharMsg struct {
AgentLocation struct {
Region int64 `yaml:"3"`
Constellation int64 `yaml:"4"`
SolarSystem int64 `yaml:"5"`
Station int64 `yaml:"15"`
} `yaml:"agentLocation"`
CharacterID int64 `yaml:"characterID"`
MessageIndex int32 `yaml:"messageIndex"`
TargetLocation struct {
Region int64 `yaml:"3"`
Constellation int64 `yaml:"4"`
SolarSystem int64 `yaml:"5"`
Station int64 `yaml:"15"`
} `yaml:"targetLocation"`
}
type MadeWarMutual ¶
type MercenaryDenAttacked ¶ added in v0.0.24
type MercenaryDenAttacked struct {
AggressorAllianceName string `yaml:"aggressorAllianceName"`
AggressorCharacterID int64 `yaml:"aggressorCharacterID"`
AggressorCorporationName string `yaml:"aggressorCorporationName"`
ArmorPercentage float64 `yaml:"armorPercentage"`
HullPercentage float64 `yaml:"hullPercentage"`
ItemID int64 `yaml:"itemID"`
MercenaryDenShowInfoData []any `yaml:"mercenaryDenShowInfoData"`
PlanetID int64 `yaml:"planetID"`
PlanetShowInfoData []any `yaml:"planetShowInfoData"`
ShieldPercentage float64 `yaml:"shieldPercentage"`
SolarSystemID int64 `yaml:"solarsystemID"`
TypeID int64 `yaml:"typeID"`
}
type MercenaryDenReinforced ¶ added in v0.0.24
type MercenaryDenReinforced struct {
AggressorAllianceName string `yaml:"aggressorAllianceName"`
AggressorCharacterID int64 `yaml:"aggressorCharacterID"`
AggressorCorporationName string `yaml:"aggressorCorporationName"`
ItemID int64 `yaml:"itemID"`
MercenaryDenShowInfoData []any `yaml:"mercenaryDenShowInfoData"`
PlanetID int64 `yaml:"planetID"`
PlanetShowInfoData []any `yaml:"planetShowInfoData"`
SolarSystemID int64 `yaml:"solarsystemID"`
TimestampEntered int64 `yaml:"timestampEntered"`
TimestampExited int64 `yaml:"timestampExited"`
TypeID int64 `yaml:"typeID"`
}
type MissionOfferExpirationMsg ¶
type MissionOfferExpirationMsg struct {
Body []string `yaml:"body"`
Header []string `yaml:"header"`
MissionKeywords struct {
ObjectiveDestinationID int64 `yaml:"objectiveDestinationID"`
ObjectiveDestinationSystemID int64 `yaml:"objectiveDestinationSystemID"`
ObjectiveLocationID int64 `yaml:"objectiveLocationID"`
ObjectiveLocationSystemID int64 `yaml:"objectiveLocationSystemID"`
ObjectiveQuantity int32 `yaml:"objectiveQuantity"`
ObjectiveTypeID int64 `yaml:"objectiveTypeID"`
RewardQuantity int32 `yaml:"rewardQuantity"`
RewardTypeID int64 `yaml:"rewardTypeID"`
} `yaml:"missionKeywords"`
}
type MoonminingAutomaticFracture ¶
type MoonminingAutomaticFracture struct {
MoonID int64 `yaml:"moonID"`
MoonLink string `yaml:"moonLink"`
OreVolumeByType map[int64]float64 `yaml:"oreVolumeByType"`
SolarSystemID int64 `yaml:"solarSystemID"`
SolarSystemLink string `yaml:"solarSystemLink"`
StructureID int64 `yaml:"structureID"`
StructureLink string `yaml:"structureLink"`
StructureName string `yaml:"structureName"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
type MoonminingExtractionCancelled ¶
type MoonminingExtractionCancelled struct {
CancelledBy int64 `yaml:"cancelledBy"`
CancelledByLink string `yaml:"cancelledByLink"`
MoonID int64 `yaml:"moonID"`
MoonLink string `yaml:"moonLink"`
SolarSystemID int64 `yaml:"solarSystemID"`
SolarSystemLink string `yaml:"solarSystemLink"`
StructureID int64 `yaml:"structureID"`
StructureLink string `yaml:"structureLink"`
StructureName string `yaml:"structureName"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
type MoonminingExtractionFinished ¶
type MoonminingExtractionFinished struct {
AutoTime int64 `yaml:"autoTime"`
MoonID int64 `yaml:"moonID"`
MoonLink string `yaml:"moonLink"`
OreVolumeByType map[int64]float64 `yaml:"oreVolumeByType"`
SolarSystemID int64 `yaml:"solarSystemID"`
SolarSystemLink string `yaml:"solarSystemLink"`
StructureID int64 `yaml:"structureID"`
StructureLink string `yaml:"structureLink"`
StructureName string `yaml:"structureName"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
type MoonminingExtractionStarted ¶
type MoonminingExtractionStarted struct {
AutoTime int64 `yaml:"autoTime"`
MoonID int64 `yaml:"moonID"`
MoonLink string `yaml:"moonLink"`
OreVolumeByType map[int64]float64 `yaml:"oreVolumeByType"`
ReadyTime int64 `yaml:"readyTime"`
SolarSystemID int64 `yaml:"solarSystemID"`
SolarSystemLink string `yaml:"solarSystemLink"`
StartedBy int64 `yaml:"startedBy"`
StartedByLink string `yaml:"startedByLink"`
StructureID int64 `yaml:"structureID"`
StructureLink string `yaml:"structureLink"`
StructureName string `yaml:"structureName"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
type MoonminingLaserFired ¶
type MoonminingLaserFired struct {
FiredBy int64 `yaml:"firedBy"`
FiredByLink string `yaml:"firedByLink"`
MoonID int64 `yaml:"moonID"`
MoonLink string `yaml:"moonLink"`
OreVolumeByType map[int64]float64 `yaml:"oreVolumeByType"`
SolarSystemID int64 `yaml:"solarSystemID"`
SolarSystemLink string `yaml:"solarSystemLink"`
StructureID int64 `yaml:"structureID"`
StructureLink string `yaml:"structureLink"`
StructureName string `yaml:"structureName"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
type NPCStandingsGained ¶
type NPCStandingsGained [][]float64
type NPCStandingsLost ¶
type NPCStandingsLost [][]float64
type NotificationTypeMoonminingExtractionStarted
deprecated
type NotificationTypeMoonminingExtractionStarted struct {
AutoTime int64 `yaml:"autoTime"`
MoonID int64 `yaml:"moonID"`
MoonLink string `yaml:"moonLink"`
OreVolumeByType map[int64]float64 `yaml:"oreVolumeByType"`
ReadyTime int64 `yaml:"readyTime"`
SolarSystemID int64 `yaml:"solarSystemID"`
SolarSystemLink string `yaml:"solarSystemLink"`
StartedBy int64 `yaml:"startedBy"`
StartedByLink string `yaml:"startedByLink"`
StructureID int64 `yaml:"structureID"`
StructureLink string `yaml:"structureLink"`
StructureName string `yaml:"structureName"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
Deprecated: Use MoonminingExtractionStarted instead.
type OfferedSurrender ¶
type OfferedToAlly ¶
type OldLscMessages ¶
type OperationFinished ¶
type OrbitalAttacked ¶
type OrbitalAttacked struct {
AggressorAllianceID int64 `yaml:"aggressorAllianceID"`
AggressorCorpID int64 `yaml:"aggressorCorpID"`
AggressorID int64 `yaml:"aggressorID"`
PlanetID int64 `yaml:"planetID"`
PlanetTypeID int64 `yaml:"planetTypeID"`
ShieldLevel float64 `yaml:"shieldLevel"`
SolarSystemID int64 `yaml:"solarSystemID"`
TypeID int64 `yaml:"typeID"`
}
type OrbitalReinforced ¶
type OrbitalReinforced struct {
AggressorAllianceID int64 `yaml:"aggressorAllianceID"`
AggressorCorpID int64 `yaml:"aggressorCorpID"`
AggressorID int64 `yaml:"aggressorID"`
PlanetID int64 `yaml:"planetID"`
PlanetTypeID int64 `yaml:"planetTypeID"`
ReinforceExitTime int64 `yaml:"reinforceExitTime"`
SolarSystemID int64 `yaml:"solarSystemID"`
TypeID int64 `yaml:"typeID"`
}
type OwnershipTransferred ¶
type OwnershipTransferred struct {
CharacterLinkData []interface{} `yaml:"characterLinkData"`
CharacterName string `yaml:"characterName"`
FromCorporationLinkData []interface{} `yaml:"fromCorporationLinkData"`
FromCorporationName string `yaml:"fromCorporationName"`
SolarSystemLinkData []interface{} `yaml:"solarSystemLinkData"`
SolarSystemName string `yaml:"solarSystemName"`
StructureLinkData []interface{} `yaml:"structureLinkData"`
StructureName string `yaml:"structureName"`
ToCorporationLinkData []interface{} `yaml:"toCorporationLinkData"`
ToCorporationName string `yaml:"toCorporationName"`
}
type OwnershipTransferredV2 ¶
type OwnershipTransferredV2 struct {
CharID int64 `yaml:"charID"`
NewOwnerCorpID int64 `yaml:"newOwnerCorpID"`
OldOwnerCorpID int64 `yaml:"oldOwnerCorpID"`
SolarSystemID int64 `yaml:"solarSystemID"`
StructureID int64 `yaml:"structureID"`
StructureName string `yaml:"structureName"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
OwnershipTransferredV2 represents the updated version for this notification type. Use OwnershipTransferred to unmarshal older notifications.
type ReimbursementMsg ¶
type ResearchMissionAvailableMsg ¶
type ResearchMissionAvailableMsg struct {
}
type RetractsWar ¶
type SkyhookLostShields ¶
type SkyhookLostShields struct {
ItemID int64 `yaml:"itemID"`
PlanetID int64 `yaml:"planetID"`
PlanetShowInfoData []interface{} `yaml:"planetShowInfoData"`
SkyhookShowInfoData []interface{} `yaml:"skyhookShowInfoData"`
SolarsystemID int64 `yaml:"solarsystemID"`
TimeLeft int64 `yaml:"timeLeft"`
Timestamp int64 `yaml:"timestamp"`
TypeID int64 `yaml:"typeID"`
VulnerableTime int64 `yaml:"vulnerableTime"`
}
type SkyhookUnderAttack ¶
type SkyhookUnderAttack struct {
AllianceID int64 `yaml:"allianceID"`
AllianceLinkData []interface{} `yaml:"allianceLinkData"`
AllianceName string `yaml:"allianceName"`
ArmorPercentage float64 `yaml:"armorPercentage"`
CharID int64 `yaml:"charID"`
CorpLinkData []interface{} `yaml:"corpLinkData"`
CorpName string `yaml:"corpName"`
IsActive bool `yaml:"isActive"`
ItemID string `yaml:"itemID"`
PlanetID int64 `yaml:"planetID"`
PlanetShowInfoData []interface{} `yaml:"planetShowInfoData"`
HullPercentage float64 `yaml:"hullPercentage"`
ShieldPercentage float64 `yaml:"shieldPercentage"`
SolarsystemID int64 `yaml:"solarsystemID"`
StructureID int64 `yaml:"structureID"`
StructureShowInfoData []interface{} `yaml:"structureShowInfoData"`
SkyhookShowInfoData []interface{} `yaml:"skyhookShowInfoData"`
TypeID int64 `yaml:"typeID"`
}
type SovAllClaimAquiredMsg ¶
type SovAllClaimLostMsg ¶
type SovStructureDestroyed ¶
type SovStructureReinforced ¶
type SovereigntyIHDamageMsg ¶
type SovereigntyIHDamageMsg struct {
AggressorAllianceID int64 `yaml:"aggressorAllianceID"`
AggressorCorpID int64 `yaml:"aggressorCorpID"`
AggressorID int64 `yaml:"aggressorID"`
ArmorValue float64 `yaml:"armorValue"`
HullValue float64 `yaml:"hullValue"`
ShieldValue float64 `yaml:"shieldValue"`
SolarSystemID int64 `yaml:"solarSystemID"`
}
type SovereigntySBUDamageMsg ¶
type SovereigntySBUDamageMsg struct {
AggressorAllianceID int64 `yaml:"aggressorAllianceID"`
AggressorCorpID int64 `yaml:"aggressorCorpID"`
AggressorID int64 `yaml:"aggressorID"`
ArmorValue float64 `yaml:"armorValue"`
HullValue float64 `yaml:"hullValue"`
ShieldValue float64 `yaml:"shieldValue"`
SolarSystemID int64 `yaml:"solarSystemID"`
}
type SovereigntyTCUDamageMsg ¶
type SovereigntyTCUDamageMsg struct {
AggressorAllianceID int64 `yaml:"aggressorAllianceID"`
AggressorCorpID int64 `yaml:"aggressorCorpID"`
AggressorID int64 `yaml:"aggressorID"`
ArmorValue float64 `yaml:"armorValue"`
HullValue float64 `yaml:"hullValue"`
ShieldValue float64 `yaml:"shieldValue"`
SolarSystemID int64 `yaml:"solarSystemID"`
}
type StationServiceDisabled ¶
type StationServiceEnabled ¶
type StringOrArray ¶
type StringOrArray []string
StringOrArray is a custom type that can unmarshal both string and []string from JSON
func (StringOrArray) MarshalJSON ¶
func (s StringOrArray) MarshalJSON() ([]byte, error)
MarshalJSON implements custom marshaling for StringOrArray
func (*StringOrArray) UnmarshalJSON ¶
func (s *StringOrArray) UnmarshalJSON(data []byte) error
UnmarshalJSON implements custom unmarshaling for StringOrArray
type StructureAnchoring ¶
type StructureAnchoring struct {
OwnerCorpLinkData []interface{} `yaml:"ownerCorpLinkData"`
OwnerCorpName string `yaml:"ownerCorpName"`
SolarsystemID int64 `yaml:"solarsystemID"`
StructureID int64 `yaml:"structureID"`
StructureShowInfoData []interface{} `yaml:"structureShowInfoData"`
StructureTypeID int64 `yaml:"structureTypeID"`
TimeLeft int64 `yaml:"timeLeft"`
VulnerableTime int64 `yaml:"vulnerableTime"`
}
type StructureDestroyed ¶
type StructureDestroyed struct {
OwnerCorpLinkData []interface{} `yaml:"ownerCorpLinkData"`
OwnerCorpName string `yaml:"ownerCorpName"`
SolarsystemID int64 `yaml:"solarsystemID"`
StructureID int64 `yaml:"structureID"`
StructureShowInfoData []interface{} `yaml:"structureShowInfoData"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
type StructureFuelAlert ¶
type StructureImpendingAbandonmentAssetsAtRisk ¶
type StructureImpendingAbandonmentAssetsAtRisk struct {
DaysUntilAbandon int32 `yaml:"daysUntilAbandon"`
IsCorpOwned bool `yaml:"isCorpOwned"`
SolarSystemID int64 `yaml:"solarsystemID"`
StructureID int64 `yaml:"structureID"`
StructureLink string `yaml:"structureLink"`
StructureShowInfoData []interface{} `yaml:"structureShowInfoData"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
type StructureItemsDelivered ¶
type StructureItemsDelivered struct {
CharID int64 `yaml:"charID"`
ListOfTypesAndQty [][]int64 `yaml:"listOfTypesAndQty"`
SolarsystemID int64 `yaml:"solarsystemID"`
StructureID int64 `yaml:"structureID"`
StructureShowInfoData []interface{} `yaml:"structureShowInfoData"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
type StructureItemsMovedToSafety ¶
type StructureItemsMovedToSafety struct {
AssetSafetyDurationFull int64 `yaml:"assetSafetyDurationFull"`
AssetSafetyDurationMinimum int64 `yaml:"assetSafetyDurationMinimum"`
AssetSafetyFullTimestamp int64 `yaml:"assetSafetyFullTimestamp"`
AssetSafetyMinimumTimestamp int64 `yaml:"assetSafetyMinimumTimestamp"`
IsCorpOwned bool `yaml:"isCorpOwned"`
NewStationID int64 `yaml:"newStationID"`
SolarSystemID int64 `yaml:"solarsystemID"`
StructureID int64 `yaml:"structureID"`
StructureLink string `yaml:"structureLink"`
StructureShowInfoData []interface{} `yaml:"structureShowInfoData"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
type StructureLostArmor ¶
type StructureLostArmor struct {
SolarsystemID int64 `yaml:"solarsystemID"`
StructureID int64 `yaml:"structureID"`
StructureShowInfoData []interface{} `yaml:"structureShowInfoData"`
StructureTypeID int64 `yaml:"structureTypeID"`
TimeLeft int64 `yaml:"timeLeft"`
Timestamp int64 `yaml:"timestamp"`
VulnerableTime int64 `yaml:"vulnerableTime"`
}
type StructureLostShields ¶
type StructureLostShields struct {
SolarsystemID int64 `yaml:"solarsystemID"`
StructureID int64 `yaml:"structureID"`
StructureShowInfoData []interface{} `yaml:"structureShowInfoData"`
StructureTypeID int64 `yaml:"structureTypeID"`
TimeLeft int64 `yaml:"timeLeft"`
Timestamp int64 `yaml:"timestamp"`
VulnerableTime int64 `yaml:"vulnerableTime"`
}
type StructureOnline ¶
type StructureUnanchoring ¶
type StructureUnanchoring struct {
OwnerCorpLinkData []interface{} `yaml:"ownerCorpLinkData"`
OwnerCorpName string `yaml:"ownerCorpName"`
SolarsystemID int64 `yaml:"solarsystemID"`
StructureID int64 `yaml:"structureID"`
StructureShowInfoData []interface{} `yaml:"structureShowInfoData"`
StructureTypeID int64 `yaml:"structureTypeID"`
TimeLeft int64 `yaml:"timeLeft"`
}
type StructureUnderAttack ¶
type StructureUnderAttack struct {
AllianceID int64 `yaml:"allianceID"`
AllianceLinkData []interface{} `yaml:"allianceLinkData"`
AllianceName string `yaml:"allianceName"`
ArmorPercentage float64 `yaml:"armorPercentage"`
CharID int64 `yaml:"charID"`
CorpLinkData []interface{} `yaml:"corpLinkData"`
CorpName string `yaml:"corpName"`
HullPercentage float64 `yaml:"hullPercentage"`
ShieldPercentage float64 `yaml:"shieldPercentage"`
SolarsystemID int64 `yaml:"solarsystemID"`
StructureID int64 `yaml:"structureID"`
StructureShowInfoData []interface{} `yaml:"structureShowInfoData"`
StructureTypeID int64 `yaml:"structureTypeID"`
}
type StructureWentHighPower ¶
type StructureWentLowPower ¶
type TowerAlertMsg ¶
type TowerAlertMsg struct {
AggressorAllianceID int64 `yaml:"aggressorAllianceID"`
AggressorCorpID int64 `yaml:"aggressorCorpID"`
AggressorID int64 `yaml:"aggressorID"`
ArmorValue float64 `yaml:"armorValue"`
HullValue float64 `yaml:"hullValue"`
MoonID int64 `yaml:"moonID"`
ShieldValue float64 `yaml:"shieldValue"`
SolarSystemID int64 `yaml:"solarSystemID"`
TypeID int64 `yaml:"typeID"`
}
type TowerResourceAlertMsg ¶
type TowerResourceAlertMsg struct {
AllianceID int64 `yaml:"allianceID"`
CorpID int64 `yaml:"corpID"`
MoonID int64 `yaml:"moonID"`
SolarSystemID int64 `yaml:"solarSystemID"`
TypeID int64 `yaml:"typeID"`
Wants []struct {
Quantity int32 `yaml:"quantity"`
TypeID int64 `yaml:"typeID"`
} `yaml:"wants"`
}
type WarAdopted ¶
type WarAllyOfferDeclinedMsg ¶
type WarDeclared ¶
type WarDeclared struct {
AgainstID int64 `yaml:"againstID"`
Cost float64 `yaml:"cost"`
DeclaredByID int64 `yaml:"declaredByID"`
DelayHours int32 `yaml:"delayHours"`
HostileState bool `yaml:"hostileState"`
TimeStarted int64 `yaml:"timeStarted"`
WarHQ string `yaml:"warHQ"`
WarHQIdType []interface{} `yaml:"warHQ_IdType"`
}
type WarHQRemovedFromSpace ¶
type WarInherited ¶
type WarInvalid ¶
type WarRetractedByConcord ¶
type WarSurrenderDeclinedMsg ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
basic-oauth2
command
|
|
|
context-auth
command
|
|
|
token-persistence
command
|