postgres

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBatchAlreadyClosed = errors.New("batch already closed")
)

Functions

This section is empty.

Types

type ACLUpdateBatchResults

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

func (*ACLUpdateBatchResults) Close

func (b *ACLUpdateBatchResults) Close() error

func (*ACLUpdateBatchResults) Exec

func (b *ACLUpdateBatchResults) Exec(f func(int, error))

type ACLUpdateParams

type ACLUpdateParams struct {
	UUID        uuid.UUID
	URI         string
	Permissions []string
}

type Acl

type Acl struct {
	UUID        uuid.UUID
	URI         string
	Permissions []string
}

type AclAudit

type AclAudit struct {
	ID         int64
	UUID       uuid.UUID
	Updated    pgtype.Timestamptz
	UpdaterUri string
	State      []byte
	Archived   bool
	Type       pgtype.Text
	Language   pgtype.Text
}

type ActivateSchemaParams

type ActivateSchemaParams struct {
	Name    string
	Version string
}

type ActiveSchema

type ActiveSchema struct {
	Name    string
	Version string
}

type CheckMetaDocumentTypeRow added in v0.4.6

type CheckMetaDocumentTypeRow struct {
	MetaType  string
	IsMetaDoc pgtype.Bool
}

type CheckPermissionsParams added in v0.4.6

type CheckPermissionsParams struct {
	URI         []string
	Permissions []string
	UUID        uuid.UUID
}

type CleanUpAssigneesParams added in v0.3.0

type CleanUpAssigneesParams struct {
	Assignment uuid.UUID
	Version    int64
}

type CleanUpAssignmentsParams added in v0.3.0

type CleanUpAssignmentsParams struct {
	PlanningItem uuid.UUID
	Version      int64
}

type CleanUpDeliverablesParams added in v0.3.0

type CleanUpDeliverablesParams struct {
	Assignment uuid.UUID
	Version    int64
}

type ConfigureEventsinkParams

type ConfigureEventsinkParams struct {
	Name   string
	Config []byte
}

type CreateDocumentVersionParams added in v0.4.6

type CreateDocumentVersionParams struct {
	UUID         uuid.UUID
	Version      int64
	Created      pgtype.Timestamptz
	CreatorUri   string
	Meta         []byte
	DocumentData []byte
}

type CreateStatusHeadParams added in v0.4.6

type CreateStatusHeadParams struct {
	UUID       uuid.UUID
	Name       string
	Type       string
	Version    int64
	ID         int64
	Created    pgtype.Timestamptz
	CreatorUri string
	Language   string
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
	SendBatch(context.Context, *pgx.Batch) pgx.BatchResults
}

type DeleteDocumentLockParams

type DeleteDocumentLockParams struct {
	UUID  uuid.UUID
	Token string
}

type DeleteDocumentParams

type DeleteDocumentParams struct {
	UUID     uuid.UUID
	URI      string
	RecordID int64
}

type DeleteExpiredDocumentLockParams

type DeleteExpiredDocumentLockParams struct {
	Uuids  []uuid.UUID
	Cutoff pgtype.Timestamptz
}

type DeleteRecord

type DeleteRecord struct {
	ID         int64
	UUID       uuid.UUID
	URI        string
	Type       string
	Version    int64
	Created    pgtype.Timestamptz
	CreatorUri string
	Meta       []byte
	MainDoc    pgtype.UUID
	Language   pgtype.Text
}

type Document

type Document struct {
	UUID           uuid.UUID
	URI            string
	Type           string
	Created        pgtype.Timestamptz
	CreatorUri     string
	Updated        pgtype.Timestamptz
	UpdaterUri     string
	CurrentVersion int64
	Deleting       bool
	MainDoc        pgtype.UUID
	Language       pgtype.Text
}
type DocumentLink struct {
	FromDocument uuid.UUID
	Version      int64
	ToDocument   uuid.UUID
	Rel          pgtype.Text
	Type         pgtype.Text
}

type DocumentLock

type DocumentLock struct {
	UUID    uuid.UUID
	Token   string
	Created pgtype.Timestamptz
	Expires pgtype.Timestamptz
	URI     pgtype.Text
	App     pgtype.Text
	Comment pgtype.Text
}

type DocumentSchema

type DocumentSchema struct {
	Name    string
	Version string
	Spec    []byte
}

type DocumentStatus

type DocumentStatus struct {
	UUID           uuid.UUID
	Name           string
	ID             int64
	Version        int64
	Created        pgtype.Timestamptz
	CreatorUri     string
	Meta           []byte
	Archived       bool
	Signature      pgtype.Text
	MetaDocVersion pgtype.Int8
}

type DocumentVersion

type DocumentVersion struct {
	UUID         uuid.UUID
	Version      int64
	Created      pgtype.Timestamptz
	CreatorUri   string
	Meta         []byte
	DocumentData []byte
	Archived     bool
	Signature    pgtype.Text
}

type DropACLParams

type DropACLParams struct {
	UUID uuid.UUID
	URI  string
}

type Eventlog

type Eventlog struct {
	ID          int64
	Event       string
	UUID        uuid.UUID
	Timestamp   pgtype.Timestamptz
	Type        pgtype.Text
	Version     pgtype.Int8
	Status      pgtype.Text
	StatusID    pgtype.Int8
	Acl         []byte
	Updater     pgtype.Text
	MainDoc     pgtype.UUID
	Language    pgtype.Text
	OldLanguage pgtype.Text
}

type Eventsink

type Eventsink struct {
	Name          string
	Position      int64
	Configuration []byte
}

type GetCompactedEventlogParams added in v0.4.0

type GetCompactedEventlogParams struct {
	After     int64
	Until     int64
	Type      pgtype.Text
	RowOffset int32
	RowLimit  pgtype.Int4
}

type GetCompactedEventlogRow added in v0.4.6

type GetCompactedEventlogRow struct {
	ID          int64
	Event       string
	UUID        uuid.UUID
	Timestamp   pgtype.Timestamptz
	Type        pgtype.Text
	Version     pgtype.Int8
	Status      pgtype.Text
	StatusID    pgtype.Int8
	Acl         []byte
	Updater     pgtype.Text
	Language    pgtype.Text
	OldLanguage pgtype.Text
	MainDoc     pgtype.UUID
}

type GetDocumentDataRow added in v0.4.6

type GetDocumentDataRow struct {
	DocumentData []byte
	Version      int64
}

type GetDocumentForDeletionRow

type GetDocumentForDeletionRow struct {
	UUID           uuid.UUID
	DeleteRecordID int64
}

type GetDocumentForUpdateParams

type GetDocumentForUpdateParams struct {
	UUID uuid.UUID
	Now  pgtype.Timestamptz
}

type GetDocumentForUpdateRow

type GetDocumentForUpdateRow struct {
	URI            string
	Type           string
	CurrentVersion int64
	Deleting       bool
	MainDoc        pgtype.UUID
	Language       pgtype.Text
	LockUuid       pgtype.UUID
	LockUri        pgtype.Text
	LockCreated    pgtype.Timestamptz
	LockExpires    pgtype.Timestamptz
	LockApp        pgtype.Text
	LockComment    pgtype.Text
	LockToken      pgtype.Text
}

type GetDocumentHeadsRow

type GetDocumentHeadsRow struct {
	Name      string
	CurrentID int64
}

type GetDocumentInfoParams

type GetDocumentInfoParams struct {
	Now  pgtype.Timestamptz
	UUID uuid.UUID
}

type GetDocumentInfoRow

type GetDocumentInfoRow struct {
	UUID           uuid.UUID
	URI            string
	Created        pgtype.Timestamptz
	CreatorUri     string
	Updated        pgtype.Timestamptz
	UpdaterUri     string
	CurrentVersion int64
	Deleting       bool
	MainDoc        pgtype.UUID
	LockUuid       pgtype.UUID
	LockUri        pgtype.Text
	LockCreated    pgtype.Timestamptz
	LockExpires    pgtype.Timestamptz
	LockApp        pgtype.Text
	LockComment    pgtype.Text
	LockToken      pgtype.Text
}

type GetDocumentStatusForArchivingRow

type GetDocumentStatusForArchivingRow struct {
	UUID             uuid.UUID
	Name             string
	ID               int64
	Version          int64
	Created          pgtype.Timestamptz
	CreatorUri       string
	Meta             []byte
	ParentSignature  pgtype.Text
	VersionSignature pgtype.Text
}

type GetDocumentVersionDataParams

type GetDocumentVersionDataParams struct {
	UUID    uuid.UUID
	Version int64
}

type GetDocumentVersionForArchivingRow

type GetDocumentVersionForArchivingRow struct {
	UUID            uuid.UUID
	Version         int64
	Created         pgtype.Timestamptz
	CreatorUri      string
	Meta            []byte
	DocumentData    []byte
	ParentSignature pgtype.Text
}

type GetEventlogParams

type GetEventlogParams struct {
	After    int64
	RowLimit int32
}

type GetEventlogRow

type GetEventlogRow struct {
	ID          int64
	Event       string
	UUID        uuid.UUID
	Timestamp   pgtype.Timestamptz
	Type        pgtype.Text
	Version     pgtype.Int8
	Status      pgtype.Text
	StatusID    pgtype.Int8
	Acl         []byte
	Updater     pgtype.Text
	Language    pgtype.Text
	OldLanguage pgtype.Text
	MainDoc     pgtype.UUID
}

type GetExpiredDocumentLocksRow added in v0.3.0

type GetExpiredDocumentLocksRow struct {
	UUID        uuid.UUID
	LockExpires pgtype.Timestamptz
	App         pgtype.Text
}

type GetFullVersionParams

type GetFullVersionParams struct {
	UUID    uuid.UUID
	Version int64
}

type GetFullVersionRow

type GetFullVersionRow struct {
	Created      pgtype.Timestamptz
	CreatorUri   string
	Meta         []byte
	DocumentData []byte
	Archived     bool
	Signature    pgtype.Text
}

type GetJobLockRow

type GetJobLockRow struct {
	Holder    string
	Touched   pgtype.Timestamptz
	Iteration int64
}

type GetLastEventRow added in v0.4.0

type GetLastEventRow struct {
	ID          int64
	Event       string
	UUID        uuid.UUID
	Timestamp   pgtype.Timestamptz
	Updater     pgtype.Text
	Type        pgtype.Text
	Version     pgtype.Int8
	Status      pgtype.Text
	StatusID    pgtype.Int8
	Acl         []byte
	Language    pgtype.Text
	OldLanguage pgtype.Text
	MainDoc     pgtype.UUID
}

type GetSchemaParams

type GetSchemaParams struct {
	Name    string
	Version string
}

type GetStatusVersionsParams

type GetStatusVersionsParams struct {
	UUID   uuid.UUID
	Name   string
	Before int64
	Count  int32
}

type GetStatusVersionsRow

type GetStatusVersionsRow struct {
	ID         int64
	Version    int64
	Created    pgtype.Timestamptz
	CreatorUri string
	Meta       []byte
}

type GetStatusesParams

type GetStatusesParams struct {
	UUID    uuid.UUID
	Name    string
	Column3 interface{}
	Limit   int32
}

type GetStatusesRow

type GetStatusesRow struct {
	UUID       uuid.UUID
	Name       string
	ID         int64
	Version    int64
	Created    pgtype.Timestamptz
	CreatorUri string
	Meta       []byte
}

type GetVersionParams

type GetVersionParams struct {
	UUID    uuid.UUID
	Version int64
}

type GetVersionRow

type GetVersionRow struct {
	Created    pgtype.Timestamptz
	CreatorUri string
	Meta       []byte
	Archived   bool
}

type GetVersionsParams

type GetVersionsParams struct {
	UUID   uuid.UUID
	Before int64
	Count  int32
}

type GetVersionsRow

type GetVersionsRow struct {
	Version    int64
	Created    pgtype.Timestamptz
	CreatorUri string
	Meta       []byte
	Archived   bool
}

type GranteesWithPermissionParams

type GranteesWithPermissionParams struct {
	UUID       uuid.UUID
	Permission string
}

type InsertACLAuditEntryParams

type InsertACLAuditEntryParams struct {
	UUID       uuid.UUID
	Type       pgtype.Text
	Updated    pgtype.Timestamptz
	UpdaterUri string
	Language   string
}

type InsertDeleteRecordParams

type InsertDeleteRecordParams struct {
	UUID       uuid.UUID
	URI        string
	Type       string
	Version    int64
	Created    pgtype.Timestamptz
	CreatorUri string
	Meta       []byte
	MainDoc    pgtype.UUID
	Language   pgtype.Text
}

type InsertDocumentLockParams

type InsertDocumentLockParams struct {
	UUID    uuid.UUID
	Token   string
	Created pgtype.Timestamptz
	Expires pgtype.Timestamptz
	URI     pgtype.Text
	App     pgtype.Text
	Comment pgtype.Text
}

type InsertDocumentStatusParams added in v0.4.6

type InsertDocumentStatusParams struct {
	UUID           uuid.UUID
	Name           string
	ID             int64
	Version        int64
	Created        pgtype.Timestamptz
	CreatorUri     string
	Meta           []byte
	MetaDocVersion int64
}

type InsertIntoEventLogParams

type InsertIntoEventLogParams struct {
	Event       string
	UUID        uuid.UUID
	Type        pgtype.Text
	Timestamp   pgtype.Timestamptz
	Updater     pgtype.Text
	Version     pgtype.Int8
	Status      pgtype.Text
	StatusID    pgtype.Int8
	Acl         []byte
	Language    pgtype.Text
	OldLanguage pgtype.Text
	MainDoc     pgtype.UUID
}

type InsertJobLockParams

type InsertJobLockParams struct {
	Name   string
	Holder string
}

type InsertSigningKeyParams

type InsertSigningKeyParams struct {
	Kid  string
	Spec []byte
}

type JobLock

type JobLock struct {
	Name      string
	Holder    string
	Touched   pgtype.Timestamptz
	Iteration int64
}

type ListReportsRow added in v0.4.5

type ListReportsRow struct {
	Name string
	Spec []byte
}

type MetaType added in v0.4.6

type MetaType struct {
	MetaType         string
	ExclusiveForMeta bool
}

type MetaTypeUse added in v0.4.6

type MetaTypeUse struct {
	MainType string
	MetaType string
}

type Metric

type Metric struct {
	UUID  uuid.UUID
	Kind  string
	Label string
	Value int64
}

type MetricKind

type MetricKind struct {
	Name        string
	Aggregation int16
}

type NotifyParams

type NotifyParams struct {
	Channel string
	Message string
}

type PingJobLockParams

type PingJobLockParams struct {
	Name      string
	Holder    string
	Iteration int64
}

type PlanningAssignee added in v0.3.0

type PlanningAssignee struct {
	Assignment uuid.UUID
	Assignee   uuid.UUID
	Version    int64
	Role       string
}

type PlanningAssignment added in v0.3.0

type PlanningAssignment struct {
	UUID         uuid.UUID
	Version      int64
	PlanningItem uuid.UUID
	Status       pgtype.Text
	Publish      pgtype.Timestamptz
	PublishSlot  pgtype.Int2
	Starts       pgtype.Timestamptz
	Ends         pgtype.Timestamptz
	StartDate    pgtype.Date
	EndDate      pgtype.Date
	FullDay      bool
	Public       bool
	Kind         []string
	Description  string
}

type PlanningDeliverable added in v0.3.0

type PlanningDeliverable struct {
	Assignment uuid.UUID
	Document   uuid.UUID
	Version    int64
}

type PlanningItem added in v0.3.0

type PlanningItem struct {
	UUID        uuid.UUID
	Version     int64
	Title       string
	Description string
	Public      bool
	Tentative   bool
	StartDate   pgtype.Date
	EndDate     pgtype.Date
	Priority    pgtype.Int2
	Event       pgtype.UUID
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) ACLUpdate

func (q *Queries) ACLUpdate(ctx context.Context, arg []ACLUpdateParams) *ACLUpdateBatchResults

func (*Queries) AcquireTXLock

func (q *Queries) AcquireTXLock(ctx context.Context, id int64) error

func (*Queries) ActivateSchema

func (q *Queries) ActivateSchema(ctx context.Context, arg ActivateSchemaParams) error

func (*Queries) CheckMetaDocumentType added in v0.4.6

func (q *Queries) CheckMetaDocumentType(ctx context.Context, argUuid uuid.UUID) (CheckMetaDocumentTypeRow, error)

func (*Queries) CheckPermissions added in v0.4.6

func (q *Queries) CheckPermissions(ctx context.Context, arg CheckPermissionsParams) (bool, error)

func (*Queries) CleanUpAssignees added in v0.3.0

func (q *Queries) CleanUpAssignees(ctx context.Context, arg CleanUpAssigneesParams) error

func (*Queries) CleanUpAssignments added in v0.3.0

func (q *Queries) CleanUpAssignments(ctx context.Context, arg CleanUpAssignmentsParams) error

func (*Queries) CleanUpDeliverables added in v0.3.0

func (q *Queries) CleanUpDeliverables(ctx context.Context, arg CleanUpDeliverablesParams) error

func (*Queries) ConfigureEventsink

func (q *Queries) ConfigureEventsink(ctx context.Context, arg ConfigureEventsinkParams) error

func (*Queries) CreateDocumentVersion added in v0.4.6

func (q *Queries) CreateDocumentVersion(ctx context.Context, arg CreateDocumentVersionParams) error

func (*Queries) CreateStatusHead added in v0.4.6

func (q *Queries) CreateStatusHead(ctx context.Context, arg CreateStatusHeadParams) error

func (*Queries) DeactivateSchema

func (q *Queries) DeactivateSchema(ctx context.Context, name string) error

func (*Queries) DeleteDocument

func (q *Queries) DeleteDocument(ctx context.Context, arg DeleteDocumentParams) error

func (*Queries) DeleteDocumentLock

func (q *Queries) DeleteDocumentLock(ctx context.Context, arg DeleteDocumentLockParams) (int64, error)

func (*Queries) DeleteExpiredDocumentLock

func (q *Queries) DeleteExpiredDocumentLock(ctx context.Context, arg DeleteExpiredDocumentLockParams) error

func (*Queries) DeleteMetricKind

func (q *Queries) DeleteMetricKind(ctx context.Context, name string) error

func (*Queries) DeletePlanningItem added in v0.3.0

func (q *Queries) DeletePlanningItem(ctx context.Context, argUuid uuid.UUID) error

func (*Queries) DeleteReport added in v0.4.5

func (q *Queries) DeleteReport(ctx context.Context, name string) error

func (*Queries) DeleteStatusRule

func (q *Queries) DeleteStatusRule(ctx context.Context, name string) error

func (*Queries) DropACL

func (q *Queries) DropACL(ctx context.Context, arg DropACLParams) error

func (*Queries) DropMetaType added in v0.4.6

func (q *Queries) DropMetaType(ctx context.Context, metaType string) error

func (*Queries) FinaliseDelete

func (q *Queries) FinaliseDelete(ctx context.Context, argUuid uuid.UUID) (int64, error)

func (*Queries) GetActiveSchema

func (q *Queries) GetActiveSchema(ctx context.Context, name string) (DocumentSchema, error)

func (*Queries) GetActiveSchemas

func (q *Queries) GetActiveSchemas(ctx context.Context) ([]DocumentSchema, error)

func (*Queries) GetActiveStatuses

func (q *Queries) GetActiveStatuses(ctx context.Context) ([]string, error)

func (*Queries) GetCompactedEventlog added in v0.4.0

func (q *Queries) GetCompactedEventlog(ctx context.Context, arg GetCompactedEventlogParams) ([]GetCompactedEventlogRow, error)

func (*Queries) GetDocumentACL

func (q *Queries) GetDocumentACL(ctx context.Context, argUuid uuid.UUID) ([]Acl, error)

func (*Queries) GetDocumentData

func (q *Queries) GetDocumentData(ctx context.Context, argUuid uuid.UUID) (GetDocumentDataRow, error)

func (*Queries) GetDocumentForDeletion

func (q *Queries) GetDocumentForDeletion(ctx context.Context) (GetDocumentForDeletionRow, error)

func (*Queries) GetDocumentForUpdate

func (q *Queries) GetDocumentForUpdate(ctx context.Context, arg GetDocumentForUpdateParams) (GetDocumentForUpdateRow, error)

func (*Queries) GetDocumentHeads

func (q *Queries) GetDocumentHeads(ctx context.Context, argUuid uuid.UUID) ([]GetDocumentHeadsRow, error)

func (*Queries) GetDocumentInfo

func (q *Queries) GetDocumentInfo(ctx context.Context, arg GetDocumentInfoParams) (GetDocumentInfoRow, error)

func (*Queries) GetDocumentStatusForArchiving

func (q *Queries) GetDocumentStatusForArchiving(ctx context.Context) (GetDocumentStatusForArchivingRow, error)

func (*Queries) GetDocumentUnarchivedCount

func (q *Queries) GetDocumentUnarchivedCount(ctx context.Context, argUuid uuid.UUID) (int64, error)

func (*Queries) GetDocumentVersionData

func (q *Queries) GetDocumentVersionData(ctx context.Context, arg GetDocumentVersionDataParams) ([]byte, error)

func (*Queries) GetDocumentVersionForArchiving

func (q *Queries) GetDocumentVersionForArchiving(ctx context.Context) (GetDocumentVersionForArchivingRow, error)

func (*Queries) GetDueReport

func (q *Queries) GetDueReport(ctx context.Context) (Report, error)

func (*Queries) GetEventlog

func (q *Queries) GetEventlog(ctx context.Context, arg GetEventlogParams) ([]GetEventlogRow, error)

func (*Queries) GetEventsinkPosition

func (q *Queries) GetEventsinkPosition(ctx context.Context, name string) (int64, error)

func (*Queries) GetExpiredDocumentLocks added in v0.3.0

func (q *Queries) GetExpiredDocumentLocks(ctx context.Context, cutoff pgtype.Timestamptz) ([]GetExpiredDocumentLocksRow, error)

func (*Queries) GetFullDocumentHeads

func (q *Queries) GetFullDocumentHeads(ctx context.Context, argUuid uuid.UUID) ([]DocumentStatus, error)

func (*Queries) GetFullVersion

func (q *Queries) GetFullVersion(ctx context.Context, arg GetFullVersionParams) (GetFullVersionRow, error)

func (*Queries) GetJobLock

func (q *Queries) GetJobLock(ctx context.Context, name string) (GetJobLockRow, error)

func (*Queries) GetLastEvent added in v0.4.0

func (q *Queries) GetLastEvent(ctx context.Context) (GetLastEventRow, error)

func (*Queries) GetLastEventID added in v0.4.0

func (q *Queries) GetLastEventID(ctx context.Context) (int64, error)

func (*Queries) GetMetaDocVersion added in v0.4.6

func (q *Queries) GetMetaDocVersion(ctx context.Context, argUuid pgtype.UUID) (int64, error)

func (*Queries) GetMetricKind

func (q *Queries) GetMetricKind(ctx context.Context, name string) (MetricKind, error)

func (*Queries) GetMetricKinds

func (q *Queries) GetMetricKinds(ctx context.Context) ([]MetricKind, error)

func (*Queries) GetNextReportDueTime

func (q *Queries) GetNextReportDueTime(ctx context.Context) (pgtype.Timestamptz, error)

func (*Queries) GetPlanningAssignment added in v0.3.0

func (q *Queries) GetPlanningAssignment(ctx context.Context, argUuid uuid.UUID) (PlanningAssignment, error)

func (*Queries) GetPlanningAssignments added in v0.3.0

func (q *Queries) GetPlanningAssignments(ctx context.Context, planningItem uuid.UUID) ([]PlanningAssignment, error)

func (*Queries) GetPlanningItem added in v0.3.0

func (q *Queries) GetPlanningItem(ctx context.Context, argUuid uuid.UUID) (PlanningItem, error)

func (*Queries) GetReport

func (q *Queries) GetReport(ctx context.Context, name string) (Report, error)

func (*Queries) GetSchema

func (q *Queries) GetSchema(ctx context.Context, arg GetSchemaParams) (DocumentSchema, error)

func (*Queries) GetSchemaVersions

func (q *Queries) GetSchemaVersions(ctx context.Context) ([]ActiveSchema, error)

func (*Queries) GetSigningKeys

func (q *Queries) GetSigningKeys(ctx context.Context) ([]SigningKey, error)

func (*Queries) GetStatusRules

func (q *Queries) GetStatusRules(ctx context.Context) ([]StatusRule, error)

func (*Queries) GetStatusVersions

func (q *Queries) GetStatusVersions(ctx context.Context, arg GetStatusVersionsParams) ([]GetStatusVersionsRow, error)

func (*Queries) GetStatuses

func (q *Queries) GetStatuses(ctx context.Context, arg GetStatusesParams) ([]GetStatusesRow, error)

func (*Queries) GetVersion

func (q *Queries) GetVersion(ctx context.Context, arg GetVersionParams) (GetVersionRow, error)

func (*Queries) GetVersions

func (q *Queries) GetVersions(ctx context.Context, arg GetVersionsParams) ([]GetVersionsRow, error)

func (*Queries) GranteesWithPermission

func (q *Queries) GranteesWithPermission(ctx context.Context, arg GranteesWithPermissionParams) ([]string, error)

func (*Queries) InsertACLAuditEntry

func (q *Queries) InsertACLAuditEntry(ctx context.Context, arg InsertACLAuditEntryParams) error

func (*Queries) InsertDeleteRecord

func (q *Queries) InsertDeleteRecord(ctx context.Context, arg InsertDeleteRecordParams) (int64, error)

func (*Queries) InsertDocumentLock

func (q *Queries) InsertDocumentLock(ctx context.Context, arg InsertDocumentLockParams) error

func (*Queries) InsertDocumentStatus added in v0.4.6

func (q *Queries) InsertDocumentStatus(ctx context.Context, arg InsertDocumentStatusParams) error

func (*Queries) InsertIntoEventLog

func (q *Queries) InsertIntoEventLog(ctx context.Context, arg InsertIntoEventLogParams) (int64, error)

func (*Queries) InsertJobLock

func (q *Queries) InsertJobLock(ctx context.Context, arg InsertJobLockParams) (int64, error)

func (*Queries) InsertSigningKey

func (q *Queries) InsertSigningKey(ctx context.Context, arg InsertSigningKeyParams) error

func (*Queries) ListReports added in v0.4.5

func (q *Queries) ListReports(ctx context.Context) ([]ListReportsRow, error)

func (*Queries) Notify

func (q *Queries) Notify(ctx context.Context, arg NotifyParams) error

func (*Queries) PingJobLock

func (q *Queries) PingJobLock(ctx context.Context, arg PingJobLockParams) (int64, error)

func (*Queries) RegisterMetaType added in v0.4.6

func (q *Queries) RegisterMetaType(ctx context.Context, arg RegisterMetaTypeParams) error

func (*Queries) RegisterMetaTypeUse added in v0.4.6

func (q *Queries) RegisterMetaTypeUse(ctx context.Context, arg RegisterMetaTypeUseParams) error

func (*Queries) RegisterMetricKind

func (q *Queries) RegisterMetricKind(ctx context.Context, arg RegisterMetricKindParams) error

func (*Queries) RegisterOrIncrementMetric

func (q *Queries) RegisterOrIncrementMetric(ctx context.Context, arg RegisterOrIncrementMetricParams) error

func (*Queries) RegisterOrReplaceMetric

func (q *Queries) RegisterOrReplaceMetric(ctx context.Context, arg RegisterOrReplaceMetricParams) error

func (*Queries) RegisterSchema

func (q *Queries) RegisterSchema(ctx context.Context, arg RegisterSchemaParams) error

func (*Queries) ReleaseJobLock

func (q *Queries) ReleaseJobLock(ctx context.Context, arg ReleaseJobLockParams) (int64, error)

func (*Queries) SetDocumentStatusAsArchived

func (q *Queries) SetDocumentStatusAsArchived(ctx context.Context, arg SetDocumentStatusAsArchivedParams) error

func (*Queries) SetDocumentVersionAsArchived

func (q *Queries) SetDocumentVersionAsArchived(ctx context.Context, arg SetDocumentVersionAsArchivedParams) error

func (*Queries) SetNextReportExecution

func (q *Queries) SetNextReportExecution(ctx context.Context, arg SetNextReportExecutionParams) error

func (*Queries) SetPlanningAssignee added in v0.3.0

func (q *Queries) SetPlanningAssignee(ctx context.Context, arg SetPlanningAssigneeParams) error

func (*Queries) SetPlanningAssignment added in v0.3.0

func (q *Queries) SetPlanningAssignment(ctx context.Context, arg SetPlanningAssignmentParams) error

func (*Queries) SetPlanningItem added in v0.3.0

func (q *Queries) SetPlanningItem(ctx context.Context, arg SetPlanningItemParams) error

func (*Queries) SetPlanningItemDeliverable added in v0.3.0

func (q *Queries) SetPlanningItemDeliverable(ctx context.Context, arg SetPlanningItemDeliverableParams) error

func (*Queries) StealJobLock

func (q *Queries) StealJobLock(ctx context.Context, arg StealJobLockParams) (int64, error)

func (*Queries) UpdateDocumentLock

func (q *Queries) UpdateDocumentLock(ctx context.Context, arg UpdateDocumentLockParams) error

func (*Queries) UpdateEventsinkPosition

func (q *Queries) UpdateEventsinkPosition(ctx context.Context, arg UpdateEventsinkPositionParams) error

func (*Queries) UpdateReport

func (q *Queries) UpdateReport(ctx context.Context, arg UpdateReportParams) error

func (*Queries) UpdateStatus

func (q *Queries) UpdateStatus(ctx context.Context, arg UpdateStatusParams) error

func (*Queries) UpdateStatusRule

func (q *Queries) UpdateStatusRule(ctx context.Context, arg UpdateStatusRuleParams) error

func (*Queries) UpsertDocument added in v0.4.6

func (q *Queries) UpsertDocument(ctx context.Context, arg UpsertDocumentParams) error

func (*Queries) WithTx

func (q *Queries) WithTx(tx pgx.Tx) *Queries

type RegisterMetaTypeParams added in v0.4.6

type RegisterMetaTypeParams struct {
	MetaType         string
	ExclusiveForMeta bool
}

type RegisterMetaTypeUseParams added in v0.4.6

type RegisterMetaTypeUseParams struct {
	MainType string
	MetaType string
}

type RegisterMetricKindParams

type RegisterMetricKindParams struct {
	Name        string
	Aggregation int16
}

type RegisterOrIncrementMetricParams

type RegisterOrIncrementMetricParams struct {
	UUID  uuid.UUID
	Kind  string
	Label string
	Value int64
}

type RegisterOrReplaceMetricParams

type RegisterOrReplaceMetricParams struct {
	UUID  uuid.UUID
	Kind  string
	Label string
	Value int64
}

type RegisterSchemaParams

type RegisterSchemaParams struct {
	Name    string
	Version string
	Spec    []byte
}

type ReleaseJobLockParams

type ReleaseJobLockParams struct {
	Name   string
	Holder string
}

type Report

type Report struct {
	Name          string
	Enabled       bool
	NextExecution pgtype.Timestamptz
	Spec          []byte
}

type SchemaVersion

type SchemaVersion struct {
	Version int32
}

type SetDocumentStatusAsArchivedParams

type SetDocumentStatusAsArchivedParams struct {
	Signature string
	UUID      uuid.UUID
	ID        int64
}

type SetDocumentVersionAsArchivedParams

type SetDocumentVersionAsArchivedParams struct {
	Signature string
	UUID      uuid.UUID
	Version   int64
}

type SetNextReportExecutionParams

type SetNextReportExecutionParams struct {
	NextExecution pgtype.Timestamptz
	Name          string
}

type SetPlanningAssigneeParams added in v0.3.0

type SetPlanningAssigneeParams struct {
	Assignment uuid.UUID
	Assignee   uuid.UUID
	Version    int64
	Role       string
}

type SetPlanningAssignmentParams added in v0.3.0

type SetPlanningAssignmentParams struct {
	UUID         uuid.UUID
	Version      int64
	PlanningItem uuid.UUID
	Status       pgtype.Text
	Publish      pgtype.Timestamptz
	PublishSlot  pgtype.Int2
	Starts       pgtype.Timestamptz
	Ends         pgtype.Timestamptz
	StartDate    pgtype.Date
	EndDate      pgtype.Date
	FullDay      bool
	Public       bool
	Kind         []string
	Description  string
}

type SetPlanningItemDeliverableParams added in v0.3.0

type SetPlanningItemDeliverableParams struct {
	Assignment uuid.UUID
	Document   uuid.UUID
	Version    int64
}

type SetPlanningItemParams added in v0.3.0

type SetPlanningItemParams struct {
	UUID        uuid.UUID
	Version     int64
	Title       string
	Description string
	Public      bool
	Tentative   bool
	StartDate   pgtype.Date
	EndDate     pgtype.Date
	Priority    pgtype.Int2
	Event       pgtype.UUID
}

type SigningKey

type SigningKey struct {
	Kid  string
	Spec []byte
}

type Status

type Status struct {
	Name     string
	Disabled bool
}

type StatusHead

type StatusHead struct {
	UUID       uuid.UUID
	Name       string
	CurrentID  int64
	Updated    pgtype.Timestamptz
	UpdaterUri string
	Type       pgtype.Text
	Version    pgtype.Int8
	Language   pgtype.Text
}

type StatusRule

type StatusRule struct {
	Name        string
	Description string
	AccessRule  bool
	AppliesTo   []string
	ForTypes    []string
	Expression  string
}

type StealJobLockParams

type StealJobLockParams struct {
	NewHolder      string
	Name           string
	PreviousHolder string
	Iteration      int64
}

type UpdateDocumentLockParams

type UpdateDocumentLockParams struct {
	Expires pgtype.Timestamptz
	UUID    uuid.UUID
}

type UpdateEventsinkPositionParams

type UpdateEventsinkPositionParams struct {
	Position int64
	Name     string
}

type UpdateReportParams

type UpdateReportParams struct {
	Name          string
	Enabled       bool
	NextExecution pgtype.Timestamptz
	Spec          []byte
}

type UpdateStatusParams

type UpdateStatusParams struct {
	Name     string
	Disabled bool
}

type UpdateStatusRuleParams

type UpdateStatusRuleParams struct {
	Name        string
	Description string
	AccessRule  bool
	AppliesTo   []string
	ForTypes    []string
	Expression  string
}

type UpsertDocumentParams added in v0.4.6

type UpsertDocumentParams struct {
	UUID       uuid.UUID
	URI        string
	Type       string
	Created    pgtype.Timestamptz
	CreatorUri string
	Version    int64
	MainDoc    pgtype.UUID
	Language   pgtype.Text
}

Jump to

Keyboard shortcuts

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