model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 1 Imported by: 0 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

Overview

Package model holds the persisted record of worktree launches.

The schema itself is owned by the SQL migrations; these structs only map onto it, and a parity test keeps the two in step.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllModels

func AllModels() []any

AllModels returns every model in this package.

Types

type WorktreeLaunch

type WorktreeLaunch struct {
	ID         int64     `gorm:"column:id;primaryKey"`
	ClonePath  string    `gorm:"column:clone_path"`
	Worktree   string    `gorm:"column:worktree"`
	Owner      string    `gorm:"column:owner"`
	Name       string    `gorm:"column:name"`
	Kind       string    `gorm:"column:kind"`
	Number     int       `gorm:"column:number"`
	LaunchedAt time.Time `gorm:"column:launched_at"`
}

WorktreeLaunch is one worktree the app started an agent session in, and the pull request or issue it is for.

func (WorktreeLaunch) TableName

func (WorktreeLaunch) TableName() string

TableName maps WorktreeLaunch to its table.

Jump to

Keyboard shortcuts

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