Documentation
¶
Index ¶
- func MigrationFS() fs.FS
- type CommaSeparatedList
- type CreateDebugletParams
- type DBTX
- type Debuglet
- type DebugletExit
- type DebugletLog
- type GetDebugletIdentityRow
- type GetOwnedDebugletByUUIDParams
- type ListDebugletExitsForBindingParams
- type ListDebugletsParams
- type NoteDebugletExitFailureParams
- type Queries
- func (q *Queries) CountDebugletExits(ctx context.Context) (int64, error)
- func (q *Queries) CreateDebuglet(ctx context.Context, arg CreateDebugletParams) error
- func (q *Queries) DeleteDebuglet(ctx context.Context, argUuid uuid.UUID) error
- func (q *Queries) GetDebugletByUUID(ctx context.Context, argUuid uuid.UUID) (Debuglet, error)
- func (q *Queries) GetDebugletExit(ctx context.Context, debugletID string) (DebugletExit, error)
- func (q *Queries) GetDebugletIdentity(ctx context.Context, argUuid uuid.UUID) (GetDebugletIdentityRow, error)
- func (q *Queries) GetDebugletStarted(ctx context.Context, argUuid uuid.UUID) (UTCTime, error)
- func (q *Queries) GetOwnedDebugletByUUID(ctx context.Context, arg GetOwnedDebugletByUUIDParams) (Debuglet, error)
- func (q *Queries) ListDebugletExits(ctx context.Context, limit int64) ([]DebugletExit, error)
- func (q *Queries) ListDebugletExitsForBinding(ctx context.Context, arg ListDebugletExitsForBindingParams) ([]DebugletExit, error)
- func (q *Queries) ListDebuglets(ctx context.Context, arg ListDebugletsParams) ([]Debuglet, error)
- func (q *Queries) NoteDebugletExitFailure(ctx context.Context, arg NoteDebugletExitFailureParams) (int64, error)
- func (q *Queries) RecordDebugletExit(ctx context.Context, arg RecordDebugletExitParams) error
- func (q *Queries) ReleaseDebugletExit(ctx context.Context, arg ReleaseDebugletExitParams) (int64, error)
- func (q *Queries) UpdateDebugletStarted(ctx context.Context, arg UpdateDebugletStartedParams) (Debuglet, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type RecordDebugletExitParams
- type ReleaseDebugletExitParams
- type UTCTime
- type UpdateDebugletStartedParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrationFS ¶
MigrationFS exposes the canonical SQL migrations without global registration.
Types ¶
type CommaSeparatedList ¶
type CommaSeparatedList []string
CommaSeparatedList allows lists of strings to be stored in a single database column as a comma-separated string, with each string base64-encoded to handle special characters and commas within the strings themselves.
func (*CommaSeparatedList) Scan ¶
func (b *CommaSeparatedList) Scan(src any) error
type CreateDebugletParams ¶
type CreateDebugletParams struct {
Uuid uuid.UUID
StartTime UTCTime
Args CommaSeparatedList
Wasm []byte
TransactionID string
FloorBw int64
CeilBw int64
TimeoutMs int64
Addresses CommaSeparatedList
RequireIcmp bool
ListenUdp bool
ListenTcp bool
ListenScion bool
DispatcherIncarnation string
SessionID string
}
type Debuglet ¶
type Debuglet struct {
ID int64
Uuid uuid.UUID
StartTime UTCTime
Args CommaSeparatedList
Wasm []byte
TransactionID string
FloorBw int64
CeilBw int64
TimeoutMs int64
Addresses CommaSeparatedList
RequireIcmp bool
ListenUdp bool
ListenTcp bool
ListenScion bool
StartedAt UTCTime
DispatcherIncarnation string
SessionID string
}
type DebugletExit ¶
type DebugletLog ¶
type GetDebugletIdentityRow ¶
type ListDebugletsParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CountDebugletExits ¶
func (*Queries) CreateDebuglet ¶
func (q *Queries) CreateDebuglet(ctx context.Context, arg CreateDebugletParams) error
func (*Queries) DeleteDebuglet ¶
func (*Queries) GetDebugletByUUID ¶
func (*Queries) GetDebugletExit ¶
func (*Queries) GetDebugletIdentity ¶
func (q *Queries) GetDebugletIdentity(ctx context.Context, argUuid uuid.UUID) (GetDebugletIdentityRow, error)
Identity, original binding and start marker only: inspection never reads the stored WASM blob or arguments.
func (*Queries) GetDebugletStarted ¶
func (*Queries) GetOwnedDebugletByUUID ¶
func (*Queries) ListDebugletExits ¶
func (*Queries) ListDebugletExitsForBinding ¶
func (q *Queries) ListDebugletExitsForBinding(ctx context.Context, arg ListDebugletExitsForBindingParams) ([]DebugletExit, error)
Only a session's own deliverable results, so results no session can deliver cannot crowd out the ones that can be.
func (*Queries) ListDebuglets ¶
func (*Queries) NoteDebugletExitFailure ¶
func (*Queries) RecordDebugletExit ¶
func (q *Queries) RecordDebugletExit(ctx context.Context, arg RecordDebugletExitParams) error
The first write wins: a duplicate report never rewrites the chosen result.
func (*Queries) ReleaseDebugletExit ¶
func (*Queries) UpdateDebugletStarted ¶
type UTCTime ¶
UTCTime is a wrapper around time.Time that ensures the time is always stored and retrieved in UTC.