mysql

package
v0.3.0-20260818173219-... Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBatchDependentStore

func NewBatchDependentStore(db *sql.DB, scope tally.Scope, queue string) storage.BatchDependentStore

NewBatchDependentStore creates a new MySQL-backed BatchDependentStore.

func NewBatchStore

func NewBatchStore(db *sql.DB, scope tally.Scope, queue string) storage.BatchStore

NewBatchStore creates a new MySQL-backed BatchStore.

func NewBuildStore

func NewBuildStore(db *sql.DB, scope tally.Scope, queue string) storage.BuildStore

NewBuildStore creates a new MySQL-backed BuildStore.

func NewChangeStore

func NewChangeStore(db *sql.DB, scope tally.Scope, queue string) storage.ChangeStore

NewChangeStore creates a new MySQL-backed ChangeStore.

func NewPathBuildStore

func NewPathBuildStore(db *sql.DB, scope tally.Scope, queue string) storage.PathBuildStore

NewPathBuildStore creates a new MySQL-backed PathBuildStore.

func NewQueueBatchStateStore

func NewQueueBatchStateStore(db *sql.DB, scope tally.Scope, queue string) storage.QueueBatchStateStore

NewQueueBatchStateStore creates a new MySQL-backed QueueBatchStateStore.

func NewRequestBatchStore

func NewRequestBatchStore(db *sql.DB, scope tally.Scope, queue string) storage.RequestBatchStore

NewRequestBatchStore creates a MySQL-backed RequestBatchStore.

func NewRequestLogStore

func NewRequestLogStore(db *sql.DB, scope tally.Scope, queue string) storage.RequestLogStore

NewRequestLogStore creates a new MySQL-backed RequestLogStore.

func NewRequestQueueSummaryStore

func NewRequestQueueSummaryStore(db *sql.DB, scope tally.Scope, queue string) storage.RequestQueueSummaryStore

NewRequestQueueSummaryStore creates a MySQL-backed RequestQueueSummaryStore.

func NewRequestStore

func NewRequestStore(db *sql.DB, scope tally.Scope, queue string) storage.RequestStore

NewRequestStore creates a new MySQL-backed RequestStore.

func NewRequestSummaryStore

func NewRequestSummaryStore(db *sql.DB, scope tally.Scope, queue string) storage.RequestSummaryStore

NewRequestSummaryStore creates a MySQL-backed RequestSummaryStore.

func NewRequestURIStore

func NewRequestURIStore(db *sql.DB, scope tally.Scope, queue string) storage.RequestURIStore

NewRequestURIStore creates a MySQL-backed RequestURIStore.

func NewSpeculationPathSetStore

func NewSpeculationPathSetStore(db *sql.DB, scope tally.Scope, queue string) storage.SpeculationPathSetStore

NewSpeculationPathSetStore creates a new MySQL-backed SpeculationPathSetStore.

Types

type Storage

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

Storage is the MySQL storage backend. It owns the shared connection pool and binds queue-scoped store aggregates over the shared tables on demand via For. The wiring layer adapts For into the storage.Factory seam; per-queue backend routing stays a host decision.

func NewStorage

func NewStorage(db *sql.DB, scope tally.Scope) (*Storage, error)

NewStorage creates a new MySQL storage backend over the given connection pool.

func (*Storage) Close

func (s *Storage) Close() error

Close closes the underlying database connection.

func (*Storage) For

func (s *Storage) For(queueName string) (storage.Storage, error)

For returns the queue-scoped store aggregate bound to queueName over the shared pool. Every store the aggregate hands back reads and writes only that queue's records.

Jump to

Keyboard shortcuts

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