Documentation
¶
Index ¶
- type CoreApiToken
- type CoreApiTokenAuditLog
- type CoreClientApplication
- type CoreEmailVerificationToken
- type CoreGlobalConfig
- type CoreMigration
- type CorePrompt
- type CoreRole
- type CoreTenant
- type CoreTenantConfig
- type CoreTranslation
- type CoreUser
- type CoreUserTenantMembership
- type CountOutboxMessagesParams
- type CreateOutboxMessageParams
- type DBTX
- type ListOutboxMessagesParams
- type MarkOutboxMessageFailedParams
- type OutbOutboxMessage
- type Queries
- func (q *Queries) ClaimPendingMessages(ctx context.Context) ([]OutbOutboxMessage, error)
- func (q *Queries) CountOutboxMessages(ctx context.Context, arg CountOutboxMessagesParams) (int64, error)
- func (q *Queries) CreateOutboxMessage(ctx context.Context, arg CreateOutboxMessageParams) (OutbOutboxMessage, error)
- func (q *Queries) DeleteOutboxMessage(ctx context.Context, id uuid.UUID) error
- func (q *Queries) GetOutboxMessageByID(ctx context.Context, id uuid.UUID) (OutbOutboxMessage, error)
- func (q *Queries) ListOutboxMessages(ctx context.Context, arg ListOutboxMessagesParams) ([]OutbOutboxMessage, error)
- func (q *Queries) MarkOutboxMessageFailed(ctx context.Context, arg MarkOutboxMessageFailedParams) (OutbOutboxMessage, error)
- func (q *Queries) MarkOutboxMessageSent(ctx context.Context, id uuid.UUID) (OutbOutboxMessage, error)
- func (q *Queries) ResetOutboxMessage(ctx context.Context, id uuid.UUID) (OutbOutboxMessage, 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 CoreApiToken ¶
type CoreApiToken struct {
ID uuid.UUID `json:"id"`
ClientApplicationID uuid.UUID `json:"client_application_id"`
Name string `json:"name"`
Description pgtype.Text `json:"description"`
TokenHash []byte `json:"token_hash"`
TokenPrefix string `json:"token_prefix"`
ExpiresAt time.Time `json:"expires_at"`
Revoked bool `json:"revoked"`
RevokedAt pgtype.Timestamptz `json:"revoked_at"`
RevokedReason pgtype.Text `json:"revoked_reason"`
RevokedBy pgtype.Text `json:"revoked_by"`
CreatedBy string `json:"created_by"`
Scopes []string `json:"scopes"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastUsedAt pgtype.Timestamptz `json:"last_used_at"`
LastUsedIp pgtype.Text `json:"last_used_ip"`
}
type CoreApiTokenAuditLog ¶
type CoreClientApplication ¶
type CoreClientApplication struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Description pgtype.Text `json:"description"`
TenantID pgtype.Text `json:"tenant_id"`
Active bool `json:"active"`
CreatedBy string `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
LastUsedAt pgtype.Timestamptz `json:"last_used_at"`
}
type CoreEmailVerificationToken ¶
type CoreEmailVerificationToken struct {
ID uuid.UUID `json:"id"`
UserID string `json:"user_id"`
TenantID string `json:"tenant_id"`
Token string `json:"token"`
TokenHash []byte `json:"token_hash"`
ExpiresAt time.Time `json:"expires_at"`
UsedAt pgtype.Timestamptz `json:"used_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CoreGlobalConfig ¶
type CoreMigration ¶
type CorePrompt ¶
type CorePrompt struct {
ID uuid.UUID `json:"id"`
Name string `json:"name"`
Content string `json:"content"`
Tags []string `json:"tags"`
Parameters []string `json:"parameters"`
SampleParameters []byte `json:"sample_parameters"`
Format string `json:"format"`
FormatInstructions pgtype.Text `json:"format_instructions"`
UserID string `json:"user_id"`
TenantID string `json:"tenant_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CoreTenant ¶
type CoreTenant struct {
ID uuid.UUID `json:"id"`
TenantID string `json:"tenant_id"`
Name string `json:"name"`
Subdomain string `json:"subdomain"`
EnableEmailLinkSignIn bool `json:"enable_email_link_sign_in"`
AllowPasswordSignUp bool `json:"allow_password_sign_up"`
UserID string `json:"user_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Profile []byte `json:"profile"`
Features []byte `json:"features"`
AllowSignUp bool `json:"allow_sign_up"`
IsReseller bool `json:"is_reseller"`
ResellerID pgtype.Text `json:"reseller_id"`
ContractEndDate pgtype.Timestamptz `json:"contract_end_date"`
IsDisabled bool `json:"is_disabled"`
FeatureLicenses []byte `json:"feature_licenses"`
}
type CoreTenantConfig ¶
type CoreTranslation ¶
type CoreTranslation struct {
ID uuid.UUID `json:"id"`
EntityType string `json:"entity_type"`
EntityID uuid.UUID `json:"entity_id"`
Language string `json:"language"`
Field string `json:"field"`
Value string `json:"value"`
TenantID string `json:"tenant_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type CoreUserTenantMembership ¶
type CoreUserTenantMembership struct {
ID uuid.UUID `json:"id"`
UserID string `json:"user_id"`
TenantID string `json:"tenant_id"`
Status string `json:"status"`
InvitedBy pgtype.Text `json:"invited_by"`
InvitedAt pgtype.Timestamptz `json:"invited_at"`
JoinedAt pgtype.Timestamptz `json:"joined_at"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
Roles []string `json:"roles"`
}
type OutbOutboxMessage ¶
type OutbOutboxMessage struct {
ID uuid.UUID `json:"id"`
EventType string `json:"event_type"`
TargetUrl string `json:"target_url"`
Payload []byte `json:"payload"`
// pending | sent | failed | dead
Status string `json:"status"`
Attempts int32 `json:"attempts"`
MaxAttempts int32 `json:"max_attempts"`
NextRetryAt time.Time `json:"next_retry_at"`
LastError pgtype.Text `json:"last_error"`
SentAt pgtype.Timestamptz `json:"sent_at"`
TenantID pgtype.Text `json:"tenant_id"`
CreatedBy pgtype.Text `json:"created_by"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) ClaimPendingMessages ¶
func (q *Queries) ClaimPendingMessages(ctx context.Context) ([]OutbOutboxMessage, error)
func (*Queries) CountOutboxMessages ¶
func (*Queries) CreateOutboxMessage ¶
func (q *Queries) CreateOutboxMessage(ctx context.Context, arg CreateOutboxMessageParams) (OutbOutboxMessage, error)
func (*Queries) DeleteOutboxMessage ¶
func (*Queries) GetOutboxMessageByID ¶
func (*Queries) ListOutboxMessages ¶
func (q *Queries) ListOutboxMessages(ctx context.Context, arg ListOutboxMessagesParams) ([]OutbOutboxMessage, error)
func (*Queries) MarkOutboxMessageFailed ¶
func (q *Queries) MarkOutboxMessageFailed(ctx context.Context, arg MarkOutboxMessageFailedParams) (OutbOutboxMessage, error)
func (*Queries) MarkOutboxMessageSent ¶
func (*Queries) ResetOutboxMessage ¶
Click to show internal directories.
Click to hide internal directories.