Versions in this module Expand all Collapse all v1 v1.2.1 Jul 29, 2026 v1.2.0 Jul 29, 2026 v1.1.0 Jul 29, 2026 v1.0.0 Jul 29, 2026 Changes in this version + var T0 = time.Unix(1784505880, 0).UTC() + func AttackEventActive() domain.AttackEvent + func AttackEventFailed() domain.AttackEvent + func AttackEventSucceeded() domain.AttackEvent + func CampaignWithActiveAttack() *domain.CampaignStatus + func CampaignWithActiveDefend() *domain.CampaignStatus + func CampaignWithEndedAttack() *domain.CampaignStatus + func CampaignWithFailedDefend() *domain.CampaignStatus + func CampaignWithNoDefend() *domain.CampaignStatus + func CampaignWithSucceededDefend() *domain.CampaignStatus + func DefendEventActive() *domain.DefendEvent + func DefendEventFailed() *domain.DefendEvent + func DefendEventNewActive() *domain.DefendEvent + func DefendEventSucceeded() *domain.DefendEvent + func DiscardLogger() *slog.Logger + func FactionStatuses() []domain.FactionStatus + type APIAttackEvent struct + EndTime int + Enemy int + ID int + MaxEventID int + PlayersAtStart int + Points int + PointsMax int + Season int + StartTime int + Status string + type APIDefendEvent struct + EndTime int + Enemy int + ID int + PlayersAtStart int + Points int + PointsMax int + Region int + Season int + StartTime int + Status string + type APIFactionStatus struct + IntroductionOrder int + Points int + PointsMax int + PointsTaken int + Season int + Status string + type APIResponse struct + AttackEvents []APIAttackEvent + DefendEvent APIDefendEvent + ErrorCode int + FactionStatus []APIFactionStatus + Statistics []APIStatistics + Time int + func RestartScenario() (partA, partB []APIResponse) + func WarScenario() []APIResponse + type APIStatistics struct + Accidentals int + AttackEvents int + CompletedPlanets int + Deaths int + DefendEvents int + Enemy int + Hits int + Kills int + Missions int + Players int + Season int + SeasonDuration int + Shots int + SuccessfulAttackEvents int + SuccessfulDefendEvents int + SuccessfulMissions int + TotalMissionDifficulty int + TotalUniquePlayers int + type ErrorStore struct + func (e *ErrorStore) GetOngoingEvent(_ int, _ domain.EventKind) (*domain.OngoingEvent, error) + func (e *ErrorStore) LatestCampaign() (*domain.CampaignStatus, error) + func (e *ErrorStore) ListOngoingEvents(_ domain.EventKind) ([]*domain.OngoingEvent, error) + func (e *ErrorStore) RemoveOngoingEvent(_ int, _ domain.EventKind) error + func (e *ErrorStore) SaveCampaign(_ *domain.CampaignStatus) error + func (e *ErrorStore) SaveOngoingEvent(_ int, _ domain.EventKind) error + type MockFetcher struct + Campaign *domain.CampaignStatus + Err error + func (m *MockFetcher) FetchCampaign() (*domain.CampaignStatus, error) + type MockNotifier struct + Messages []domain.EventMessage + func (m *MockNotifier) Count() int + func (m *MockNotifier) First() *domain.EventMessage + func (m *MockNotifier) Last() *domain.EventMessage + func (m *MockNotifier) Notify(msg domain.EventMessage) error + func (m *MockNotifier) Reset() + type MockServer struct + Server *httptest.Server + func NewMockServer(responses []APIResponse) *MockServer + func (ms *MockServer) CallCount() int + func (ms *MockServer) Close() + func (ms *MockServer) URL() string