query

package
v1.0.0-cli.0...-421df98 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: AGPL-3.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type AllChunkThumbnailHashesRow

type AllChunkThumbnailHashesRow struct {
	ID            string
	ThumbnailHash pgtype.Text
}

type AllDeletedFlavorsRow

type AllDeletedFlavorsRow struct {
	ID      string
	ChunkID string
}

type ArchiveChunkParams

type ArchiveChunkParams struct {
	ID        string
	OwnerID   string
	Data      []byte
	CreatedAt time.Time
}

type ArchiveFlavorParams

type ArchiveFlavorParams struct {
	ID        string
	ChunkID   string
	Data      []byte
	CreatedAt time.Time
}

type ArchiveFlavorVersionParams

type ArchiveFlavorVersionParams struct {
	ID        string
	FlavorID  string
	Data      []byte
	CreatedAt time.Time
}

type BestNodeRow

type BestNodeRow struct {
	ID                    string
	Name                  string
	Address               netip.Addr
	CheckpointApiEndpoint string
	CreatedAt             time.Time
	Slots                 int32
	InstanceCount         int64
}

type Blob

type Blob struct {
	Hash      string
	Data      []byte
	CreatedAt time.Time
}

type BuildStatus

type BuildStatus string
const (
	BuildStatusPENDING               BuildStatus = "PENDING"
	BuildStatusIMAGEBUILD            BuildStatus = "IMAGE_BUILD"
	BuildStatusIMAGEBUILDFAILED      BuildStatus = "IMAGE_BUILD_FAILED"
	BuildStatusCHECKPOINTBUILD       BuildStatus = "CHECKPOINT_BUILD"
	BuildStatusCHECKPOINTBUILDFAILED BuildStatus = "CHECKPOINT_BUILD_FAILED"
	BuildStatusCOMPLETED             BuildStatus = "COMPLETED"
)

func (*BuildStatus) Scan

func (e *BuildStatus) Scan(src interface{}) error

type BulkDeleteInstancesBatchResults

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

func (*BulkDeleteInstancesBatchResults) Close

func (*BulkDeleteInstancesBatchResults) Exec

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

type BulkGetBlobDataBatchResults

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

func (*BulkGetBlobDataBatchResults) Close

func (*BulkGetBlobDataBatchResults) Query

func (b *BulkGetBlobDataBatchResults) Query(f func(int, []Blob, error))

type BulkInsertBlobDataBatchResults

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

func (*BulkInsertBlobDataBatchResults) Close

func (*BulkInsertBlobDataBatchResults) Exec

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

type BulkInsertBlobDataParams

type BulkInsertBlobDataParams struct {
	Hash string
	Data []byte
}

type BulkInsertFlavorFileHashesBatchResults

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

func (*BulkInsertFlavorFileHashesBatchResults) Close

func (*BulkInsertFlavorFileHashesBatchResults) Exec

type BulkInsertFlavorFileHashesParams

type BulkInsertFlavorFileHashesParams struct {
	FlavorVersionID string
	FileHash        string
	FilePath        string
}

type BulkUpdateInstanceStateAndPortBatchResults

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

func (*BulkUpdateInstanceStateAndPortBatchResults) Close

func (*BulkUpdateInstanceStateAndPortBatchResults) Exec

type BulkUpdateInstanceStateAndPortParams

type BulkUpdateInstanceStateAndPortParams struct {
	State InstanceState
	Port  *int32
	ID    string
}

type Chunk

type Chunk struct {
	ID                 string
	Name               string
	Description        string
	Tags               []string
	CreatedAt          time.Time
	UpdatedAt          time.Time
	OwnerID            string
	ThumbnailHash      pgtype.Text
	ThumbnailUpdatedAt time.Time
	DeletedAt          pgtype.Timestamptz
}

type ChunkArchive

type ChunkArchive struct {
	ID        string
	OwnerID   string
	Data      []byte
	CreatedAt time.Time
}

type ChunkOwnerByChunkIDParams

type ChunkOwnerByChunkIDParams struct {
	ID    string
	IdpID string
}

type ChunkOwnerByFlavorIDParams

type ChunkOwnerByFlavorIDParams struct {
	ID    string
	IdpID string
}

type ChunkOwnerByFlavorVersionIDParams

type ChunkOwnerByFlavorVersionIDParams struct {
	ID    string
	IdpID string
}

type CreateChunkParams

type CreateChunkParams struct {
	ID          string
	Name        string
	Description string
	Tags        []string
	OwnerID     string
	CreatedAt   time.Time
	UpdatedAt   time.Time
}

type CreateFlavorParams

type CreateFlavorParams struct {
	ID        string
	ChunkID   string
	Name      string
	CreatedAt time.Time
	UpdatedAt time.Time
}

type CreateFlavorVersionParams

type CreateFlavorVersionParams struct {
	ID               string
	FlavorID         string
	Hash             string
	Version          string
	PrevVersionID    *string
	MinecraftVersion string
	CreatedAt        time.Time
	MinPlayers       int32
	MaxPlayers       int32
}

type CreateInstanceParams

type CreateInstanceParams struct {
	ID              string
	FlavorVersionID string
	NodeID          string
	State           InstanceState
	OwnerID         string
	CreatedAt       time.Time
	UpdatedAt       time.Time
	OrderedBy       string
}

type CreateUserParams

type CreateUserParams struct {
	ID        string
	Nickname  string
	CreatedAt time.Time
	UpdatedAt time.Time
	IdpID     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 Flavor

type Flavor struct {
	ID        string
	ChunkID   string
	Name      string
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt pgtype.Timestamptz
}

type FlavorArchive

type FlavorArchive struct {
	ID        string
	ChunkID   string
	Data      []byte
	CreatedAt time.Time
}

type FlavorNameExistsParams

type FlavorNameExistsParams struct {
	Name    string
	ChunkID string
}

type FlavorVersion

type FlavorVersion struct {
	ID                     string
	FlavorID               string
	Hash                   string
	BuildStatus            BuildStatus
	Version                string
	FilesUploaded          bool
	PrevVersionID          *string
	CreatedAt              time.Time
	PresignedUrlExpiryDate pgtype.Timestamptz
	PresignedUrl           pgtype.Text
	MinecraftVersion       string
	MinPlayers             int32
	MaxPlayers             int32
}

type FlavorVersionArchive

type FlavorVersionArchive struct {
	ID        string
	FlavorID  string
	Data      []byte
	CreatedAt time.Time
}

type FlavorVersionByIDRow

type FlavorVersionByIDRow struct {
	ID                     string
	FlavorID               string
	Hash                   string
	BuildStatus            BuildStatus
	Version                string
	FilesUploaded          bool
	PrevVersionID          *string
	CreatedAt              time.Time
	PresignedUrlExpiryDate pgtype.Timestamptz
	PresignedUrl           pgtype.Text
	MinecraftVersion       string
	MinPlayers             int32
	MaxPlayers             int32
	FlavorVersionID        string
	FileHash               string
	FilePath               string
	CreatedAt_2            time.Time
}

type FlavorVersionExistsParams

type FlavorVersionExistsParams struct {
	Version  string
	FlavorID string
}

type FlavorVersionFile

type FlavorVersionFile struct {
	FlavorVersionID string
	FileHash        string
	FilePath        string
	CreatedAt       time.Time
}

type GetChunkByFlavorIDRow

type GetChunkByFlavorIDRow struct {
	Chunk             Chunk
	Flavor            Flavor
	FlavorVersion     FlavorVersion
	FlavorVersionFile FlavorVersionFile
	User              User
}

type GetChunkByIDRow

type GetChunkByIDRow struct {
	ID                     string
	Name                   string
	Description            string
	Tags                   []string
	CreatedAt              time.Time
	UpdatedAt              time.Time
	OwnerID                string
	ThumbnailHash          pgtype.Text
	ThumbnailUpdatedAt     time.Time
	DeletedAt              pgtype.Timestamptz
	ID_2                   *string
	ChunkID                *string
	Name_2                 pgtype.Text
	CreatedAt_2            pgtype.Timestamptz
	UpdatedAt_2            pgtype.Timestamptz
	DeletedAt_2            pgtype.Timestamptz
	ID_3                   *string
	FlavorID               *string
	Hash                   pgtype.Text
	BuildStatus            NullBuildStatus
	Version                pgtype.Text
	FilesUploaded          pgtype.Bool
	PrevVersionID          *string
	CreatedAt_3            pgtype.Timestamptz
	PresignedUrlExpiryDate pgtype.Timestamptz
	PresignedUrl           pgtype.Text
	MinecraftVersion       pgtype.Text
	MinPlayers             pgtype.Int4
	MaxPlayers             pgtype.Int4
	FlavorVersionID        *string
	FileHash               pgtype.Text
	FilePath               pgtype.Text
	CreatedAt_4            pgtype.Timestamptz
	ID_4                   *string
	Nickname               pgtype.Text
	CreatedAt_5            pgtype.Timestamptz
	UpdatedAt_3            pgtype.Timestamptz
	IdpID                  pgtype.Text
}

type GetFlavorByIDRow

type GetFlavorByIDRow struct {
	ID                     string
	ChunkID                string
	Name                   string
	CreatedAt              time.Time
	UpdatedAt              time.Time
	DeletedAt              pgtype.Timestamptz
	ID_2                   *string
	FlavorID               *string
	Hash                   pgtype.Text
	BuildStatus            NullBuildStatus
	Version                pgtype.Text
	FilesUploaded          pgtype.Bool
	PrevVersionID          *string
	CreatedAt_2            pgtype.Timestamptz
	PresignedUrlExpiryDate pgtype.Timestamptz
	PresignedUrl           pgtype.Text
	MinecraftVersion       pgtype.Text
	MinPlayers             pgtype.Int4
	MaxPlayers             pgtype.Int4
}

type GetInstanceRow

type GetInstanceRow struct {
	FlavorVersion FlavorVersion
	Chunk         Chunk
	Flavor        Flavor
	Node          Node
	User          User
	Instance      Instance
}

type GetInstancesByNodeIDRow

type GetInstancesByNodeIDRow struct {
	FlavorVersion FlavorVersion
	Chunk         Chunk
	Flavor        Flavor
	Node          Node
	User          User
	Instance      Instance
}

type Instance

type Instance struct {
	ID              string
	FlavorVersionID string
	NodeID          string
	Port            *int32
	State           InstanceState
	CreatedAt       time.Time
	UpdatedAt       time.Time
	OwnerID         string
	OrderedBy       string
}

type InstanceState

type InstanceState string
const (
	InstanceStatePENDING        InstanceState = "PENDING"
	InstanceStateCREATING       InstanceState = "CREATING"
	InstanceStateRUNNING        InstanceState = "RUNNING"
	InstanceStateDELETING       InstanceState = "DELETING"
	InstanceStateDELETED        InstanceState = "DELETED"
	InstanceStateCREATIONFAILED InstanceState = "CREATION_FAILED"
)

func (*InstanceState) Scan

func (e *InstanceState) Scan(src interface{}) error

type ListChunksRow

type ListChunksRow struct {
	ID                     string
	Name                   string
	Description            string
	Tags                   []string
	CreatedAt              time.Time
	UpdatedAt              time.Time
	OwnerID                string
	ThumbnailHash          pgtype.Text
	ThumbnailUpdatedAt     time.Time
	DeletedAt              pgtype.Timestamptz
	ID_2                   *string
	ChunkID                *string
	Name_2                 pgtype.Text
	CreatedAt_2            pgtype.Timestamptz
	UpdatedAt_2            pgtype.Timestamptz
	DeletedAt_2            pgtype.Timestamptz
	ID_3                   *string
	FlavorID               *string
	Hash                   pgtype.Text
	BuildStatus            NullBuildStatus
	Version                pgtype.Text
	FilesUploaded          pgtype.Bool
	PrevVersionID          *string
	CreatedAt_3            pgtype.Timestamptz
	PresignedUrlExpiryDate pgtype.Timestamptz
	PresignedUrl           pgtype.Text
	MinecraftVersion       pgtype.Text
	MinPlayers             pgtype.Int4
	MaxPlayers             pgtype.Int4
	FlavorVersionID        *string
	FileHash               pgtype.Text
	FilePath               pgtype.Text
	CreatedAt_4            pgtype.Timestamptz
	ID_4                   *string
	Nickname               pgtype.Text
	CreatedAt_5            pgtype.Timestamptz
	UpdatedAt_3            pgtype.Timestamptz
	IdpID                  pgtype.Text
}

type ListChunksWithPaginationIgnoreDeletedParams

type ListChunksWithPaginationIgnoreDeletedParams struct {
	AfterID *string
	Limit   int32
}

type ListChunksWithPaginationIgnoreDeletedRow

type ListChunksWithPaginationIgnoreDeletedRow struct {
	ID                     string
	Name                   string
	Description            string
	Tags                   []string
	CreatedAt              time.Time
	UpdatedAt              time.Time
	OwnerID                string
	ThumbnailHash          pgtype.Text
	ThumbnailUpdatedAt     time.Time
	DeletedAt              pgtype.Timestamptz
	ID_2                   *string
	ChunkID                *string
	Name_2                 pgtype.Text
	CreatedAt_2            pgtype.Timestamptz
	UpdatedAt_2            pgtype.Timestamptz
	DeletedAt_2            pgtype.Timestamptz
	ID_3                   *string
	FlavorID               *string
	Hash                   pgtype.Text
	BuildStatus            NullBuildStatus
	Version                pgtype.Text
	FilesUploaded          pgtype.Bool
	PrevVersionID          *string
	CreatedAt_3            pgtype.Timestamptz
	PresignedUrlExpiryDate pgtype.Timestamptz
	PresignedUrl           pgtype.Text
	MinecraftVersion       pgtype.Text
	MinPlayers             pgtype.Int4
	MaxPlayers             pgtype.Int4
	FlavorVersionID        *string
	FileHash               pgtype.Text
	FilePath               pgtype.Text
	CreatedAt_4            pgtype.Timestamptz
	ID_4                   *string
	Nickname               pgtype.Text
	CreatedAt_5            pgtype.Timestamptz
	UpdatedAt_3            pgtype.Timestamptz
	IdpID                  pgtype.Text
}

type ListInstancesWithPaginationParams

type ListInstancesWithPaginationParams struct {
	AfterID *string
	Limit   int32
}

type ListInstancesWithPaginationRow

type ListInstancesWithPaginationRow struct {
	FlavorVersion FlavorVersion
	Chunk         Chunk
	Flavor        Flavor
	Node          Node
	User          User
	Instance      Instance
}

type MinecraftVersion

type MinecraftVersion struct {
	Version   string
	CreatedAt pgtype.Timestamptz
	ImageUrl  string
}

type Node

type Node struct {
	ID                    string
	Name                  string
	Address               netip.Addr
	CheckpointApiEndpoint string
	CreatedAt             time.Time
	Slots                 int32
}

type NullBuildStatus

type NullBuildStatus struct {
	BuildStatus BuildStatus
	Valid       bool // Valid is true if BuildStatus is not NULL
}

func (*NullBuildStatus) Scan

func (ns *NullBuildStatus) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullBuildStatus) Value

func (ns NullBuildStatus) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullInstanceState

type NullInstanceState struct {
	InstanceState InstanceState
	Valid         bool // Valid is true if InstanceState is not NULL
}

func (*NullInstanceState) Scan

func (ns *NullInstanceState) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullInstanceState) Value

func (ns NullInstanceState) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type NullRiverJobState

type NullRiverJobState struct {
	RiverJobState RiverJobState
	Valid         bool // Valid is true if RiverJobState is not NULL
}

func (*NullRiverJobState) Scan

func (ns *NullRiverJobState) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullRiverJobState) Value

func (ns NullRiverJobState) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AllChunkThumbnailHashes

func (q *Queries) AllChunkThumbnailHashes(ctx context.Context) ([]AllChunkThumbnailHashesRow, error)

func (*Queries) AllDeletedFlavors

func (q *Queries) AllDeletedFlavors(ctx context.Context) ([]AllDeletedFlavorsRow, error)

func (*Queries) AllMinecraftVersions

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

func (*Queries) ArchiveChunk

func (q *Queries) ArchiveChunk(ctx context.Context, arg ArchiveChunkParams) error

func (*Queries) ArchiveFlavor

func (q *Queries) ArchiveFlavor(ctx context.Context, arg ArchiveFlavorParams) error

func (*Queries) ArchiveFlavorVersion

func (q *Queries) ArchiveFlavorVersion(ctx context.Context, arg ArchiveFlavorVersionParams) error

func (*Queries) BestNode

func (q *Queries) BestNode(ctx context.Context) (BestNodeRow, error)

func (*Queries) BulkDeleteInstances

func (q *Queries) BulkDeleteInstances(ctx context.Context, id []string) *BulkDeleteInstancesBatchResults

func (*Queries) BulkGetBlobData

func (q *Queries) BulkGetBlobData(ctx context.Context, hash []string) *BulkGetBlobDataBatchResults

func (*Queries) BulkInsertBlobData

func (*Queries) ChunkOwnerByChunkID

func (q *Queries) ChunkOwnerByChunkID(ctx context.Context, arg ChunkOwnerByChunkIDParams) (User, error)

func (*Queries) ChunkOwnerByFlavorID

func (q *Queries) ChunkOwnerByFlavorID(ctx context.Context, arg ChunkOwnerByFlavorIDParams) (User, error)

func (*Queries) ChunkOwnerByFlavorVersionID

func (q *Queries) ChunkOwnerByFlavorVersionID(ctx context.Context, arg ChunkOwnerByFlavorVersionIDParams) (User, error)

func (*Queries) CountInstancesByFlavorID

func (q *Queries) CountInstancesByFlavorID(ctx context.Context, flavorVersionID string) (int64, error)

func (*Queries) CreateChunk

func (q *Queries) CreateChunk(ctx context.Context, arg CreateChunkParams) error

func (*Queries) CreateFlavor

func (q *Queries) CreateFlavor(ctx context.Context, arg CreateFlavorParams) error

TODO: insert multiple (aka :batchmany)

func (*Queries) CreateFlavorVersion

func (q *Queries) CreateFlavorVersion(ctx context.Context, arg CreateFlavorVersionParams) error

func (*Queries) CreateInstance

func (q *Queries) CreateInstance(ctx context.Context, arg CreateInstanceParams) error

func (*Queries) CreateUser

func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error

func (*Queries) DeleteChunk

func (q *Queries) DeleteChunk(ctx context.Context, id string) error

func (*Queries) DeleteFlavor

func (q *Queries) DeleteFlavor(ctx context.Context, id string) error

func (*Queries) DeleteFlavorVersion

func (q *Queries) DeleteFlavorVersion(ctx context.Context, id string) error

func (*Queries) FlavorIDByFlavorVersionID

func (q *Queries) FlavorIDByFlavorVersionID(ctx context.Context, id string) (string, error)

func (*Queries) FlavorNameExists

func (q *Queries) FlavorNameExists(ctx context.Context, arg FlavorNameExistsParams) (bool, error)

func (*Queries) FlavorVersionByID

func (q *Queries) FlavorVersionByID(ctx context.Context, id string) ([]FlavorVersionByIDRow, error)

func (*Queries) FlavorVersionExists

func (q *Queries) FlavorVersionExists(ctx context.Context, arg FlavorVersionExistsParams) (bool, error)

func (*Queries) FlavorVersionFileHashes

func (q *Queries) FlavorVersionFileHashes(ctx context.Context, flavorVersionID string) ([]FlavorVersionFile, error)

func (*Queries) FlavorVersionHashByID

func (q *Queries) FlavorVersionHashByID(ctx context.Context, id string) (string, error)

func (*Queries) GetChunkByFlavorID

func (q *Queries) GetChunkByFlavorID(ctx context.Context, id string) ([]GetChunkByFlavorIDRow, error)

func (*Queries) GetChunkByID

func (q *Queries) GetChunkByID(ctx context.Context, id string) ([]GetChunkByIDRow, error)

TODO: read multiple

func (*Queries) GetFlavorByID

func (q *Queries) GetFlavorByID(ctx context.Context, flavorID string) ([]GetFlavorByIDRow, error)

func (*Queries) GetInstance

func (q *Queries) GetInstance(ctx context.Context, id string) ([]GetInstanceRow, error)

func (*Queries) GetInstancesByNodeID

func (q *Queries) GetInstancesByNodeID(ctx context.Context, nodeID string) ([]GetInstancesByNodeIDRow, error)

func (*Queries) GetMinecraftVersionByVersionName

func (q *Queries) GetMinecraftVersionByVersionName(ctx context.Context, version string) (MinecraftVersion, error)

func (*Queries) LatestFlavorVersionByFlavorID

func (q *Queries) LatestFlavorVersionByFlavorID(ctx context.Context, flavorID string) (FlavorVersion, error)

func (*Queries) ListChunks

func (q *Queries) ListChunks(ctx context.Context) ([]ListChunksRow, error)

func (*Queries) MarkChunkDeleted

func (q *Queries) MarkChunkDeleted(ctx context.Context, id string) error

func (*Queries) MarkFlavorDeleted

func (q *Queries) MarkFlavorDeleted(ctx context.Context, id string) error

func (*Queries) MarkFlavorVersionFilesUploaded

func (q *Queries) MarkFlavorVersionFilesUploaded(ctx context.Context, id string) error

func (*Queries) RandomNode

func (q *Queries) RandomNode(ctx context.Context) (Node, error)

func (*Queries) UpdateChunk

func (q *Queries) UpdateChunk(ctx context.Context, arg UpdateChunkParams) error

func (*Queries) UpdateChunkThumbnail

func (q *Queries) UpdateChunkThumbnail(ctx context.Context, arg UpdateChunkThumbnailParams) error

func (*Queries) UpdateFlavorVersionBuildStatus

func (q *Queries) UpdateFlavorVersionBuildStatus(ctx context.Context, arg UpdateFlavorVersionBuildStatusParams) error

func (*Queries) UpdateFlavorVersionPresignedURLData

func (q *Queries) UpdateFlavorVersionPresignedURLData(ctx context.Context, arg UpdateFlavorVersionPresignedURLDataParams) error

func (*Queries) UserByIDPID

func (q *Queries) UserByIDPID(ctx context.Context, idpID string) (User, error)

func (*Queries) WithTx

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

type RiverJob

type RiverJob struct {
	ID           int64
	State        RiverJobState
	Attempt      int16
	MaxAttempts  int16
	AttemptedAt  pgtype.Timestamptz
	CreatedAt    time.Time
	FinalizedAt  pgtype.Timestamptz
	ScheduledAt  time.Time
	Priority     int16
	Args         []byte
	AttemptedBy  []string
	Errors       [][]byte
	Kind         string
	Metadata     []byte
	Queue        string
	Tags         []string
	UniqueKey    []byte
	UniqueStates pgtype.Bits
}

type RiverJobState

type RiverJobState string
const (
	RiverJobStateAvailable RiverJobState = "available"
	RiverJobStateCancelled RiverJobState = "cancelled"
	RiverJobStateCompleted RiverJobState = "completed"
	RiverJobStateDiscarded RiverJobState = "discarded"
	RiverJobStatePending   RiverJobState = "pending"
	RiverJobStateRetryable RiverJobState = "retryable"
	RiverJobStateRunning   RiverJobState = "running"
	RiverJobStateScheduled RiverJobState = "scheduled"
)

func (*RiverJobState) Scan

func (e *RiverJobState) Scan(src interface{}) error

type RiverLeader

type RiverLeader struct {
	ElectedAt time.Time
	ExpiresAt time.Time
	LeaderID  string
	Name      string
}

type RiverNotification

type RiverNotification struct {
	ID        int64
	CreatedAt time.Time
	Payload   string
	Topic     string
}

type RiverQueue

type RiverQueue struct {
	Name      string
	CreatedAt time.Time
	Metadata  []byte
	PausedAt  pgtype.Timestamptz
	UpdatedAt time.Time
}

type SchemaMigration

type SchemaMigration struct {
	Version string
}

type UpdateChunkParams

type UpdateChunkParams struct {
	Name        string
	Description string
	Tags        []string
	ID          string
}

type UpdateChunkThumbnailParams

type UpdateChunkThumbnailParams struct {
	ThumbnailHash pgtype.Text
	ID            string
}

type UpdateFlavorVersionBuildStatusParams

type UpdateFlavorVersionBuildStatusParams struct {
	BuildStatus BuildStatus
	ID          string
}

type UpdateFlavorVersionPresignedURLDataParams

type UpdateFlavorVersionPresignedURLDataParams struct {
	PresignedUrlExpiryDate pgtype.Timestamptz
	PresignedUrl           pgtype.Text
	ID                     string
}

type User

type User struct {
	ID        string
	Nickname  string
	CreatedAt time.Time
	UpdatedAt time.Time
	IdpID     string
}

Jump to

Keyboard shortcuts

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