Documentation
¶
Index ¶
- type DBTX
- type GetOutgoingHeartbeatResultRow
- type GetRuntimeStateRow
- type LatestDowntimeRow
- type ListActiveStormsRow
- type ListBrokenDestinationsRow
- type ListDeliveryQueuesParams
- type ListDeliveryQueuesRow
- type ListIntegrationsAttentionRow
- type ListTemplateErrorsRow
- type Queries
- func (q *Queries) GetOutgoingHeartbeatResult(ctx context.Context, orgID int64) (GetOutgoingHeartbeatResultRow, error)
- func (q *Queries) GetRuntimeState(ctx context.Context) (GetRuntimeStateRow, error)
- func (q *Queries) LatestDowntime(ctx context.Context) (LatestDowntimeRow, error)
- func (q *Queries) ListActiveStorms(ctx context.Context, orgID int64) ([]ListActiveStormsRow, error)
- func (q *Queries) ListBrokenDestinations(ctx context.Context, orgID int64) ([]ListBrokenDestinationsRow, error)
- func (q *Queries) ListDeliveryQueues(ctx context.Context, arg ListDeliveryQueuesParams) ([]ListDeliveryQueuesRow, error)
- func (q *Queries) ListIntegrationsAttention(ctx context.Context, orgID int64) ([]ListIntegrationsAttentionRow, error)
- func (q *Queries) ListTemplateErrors(ctx context.Context, orgID int64) ([]ListTemplateErrorsRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetRuntimeStateRow ¶
type GetRuntimeStateRow struct {
LeaderReplicaID pgtype.Text
AliveAt pgtype.Timestamptz
RecoveryUntil pgtype.Timestamptz
}
type ListActiveStormsRow ¶
type ListDeliveryQueuesRow ¶
type ListIntegrationsAttentionRow ¶
type ListIntegrationsAttentionRow struct {
PublicID string
Name string
Issue string
Since pgtype.Timestamptz
}
type ListTemplateErrorsRow ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) GetOutgoingHeartbeatResult ¶
func (q *Queries) GetOutgoingHeartbeatResult(ctx context.Context, orgID int64) (GetOutgoingHeartbeatResultRow, error)
GetOutgoingHeartbeatResult reads whether the outgoing heartbeat has a URL and the result of its last attempt; organizations is keyed by id.
func (*Queries) GetRuntimeState ¶
func (q *Queries) GetRuntimeState(ctx context.Context) (GetRuntimeStateRow, error)
SPDX-License-Identifier: AGPL-3.0-only Copyright The Muster Authors GetRuntimeState reads the Leader and the recovery window of the installation; runtime_state has one row and no org_id.
func (*Queries) LatestDowntime ¶
func (q *Queries) LatestDowntime(ctx context.Context) (LatestDowntimeRow, error)
LatestDowntime reads the last recorded downtime of the installation; downtime_periods has no org_id.
func (*Queries) ListActiveStorms ¶
ListActiveStorms lists the Storms that have not ended, with their Route; a Storm of a deleted Route, which may not have ended yet, is left out, as muster_storm_active leaves it out.
func (*Queries) ListBrokenDestinations ¶
func (q *Queries) ListBrokenDestinations(ctx context.Context, orgID int64) ([]ListBrokenDestinationsRow, error)
ListBrokenDestinations lists the Broken Destinations that are not deleted, with the masked reason.
func (*Queries) ListDeliveryQueues ¶
func (q *Queries) ListDeliveryQueues(ctx context.Context, arg ListDeliveryQueuesParams) ([]ListDeliveryQueuesRow, error)
ListDeliveryQueues lists the Destinations that are not deleted with pending deliveries that no Storm holds, Thread replies due at @now or pending outgoing webhook events, and their count. It counts as CountDeliveryQueues of internal/delivery counts muster_delivery_queue; a change of one changes the other.
func (*Queries) ListIntegrationsAttention ¶
func (q *Queries) ListIntegrationsAttention(ctx context.Context, orgID int64) ([]ListIntegrationsAttentionRow, error)
ListIntegrationsAttention lists the Integrations that are not deleted and are Heartbeat lost, or have a truncated groupKey, since when.
func (*Queries) ListTemplateErrors ¶
func (q *Queries) ListTemplateErrors(ctx context.Context, orgID int64) ([]ListTemplateErrorsRow, error)
ListTemplateErrors lists the Routes and the Destinations that are not deleted and whose template keeps failing.