models

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	ID         string
	TemplateID string
	Filter     string
	FormValues string
	Doc        string
	CreatedTS  int64
}

Document is a persisted generated document (one template run's output), kept so a run is re-exportable without recomputing.

func (Document) TableName

func (Document) TableName() string

TableName is the documents table.

type Event

type Event struct {
	ID        string
	TS        int64
	Type      string
	Owner     string
	Repo      string
	SHA       string
	Number    int
	Title     string
	URL       string
	Additions int
	Deletions int
	Branch    string
	Raw       string
}

Event is one GitHub activity item (commit / pr / review / issue / release), keyed by a stable "{type}:{owner}/{repo}:{sha|number}" id. Query-only model; the schema (columns + indexes) is owned by the SQL migrations.

func (Event) TableName

func (Event) TableName() string

TableName is the events table.

type LLMCache

type LLMCache struct {
	Key               string
	Step              string
	ProcessingVersion string
	InputHash         string
	Output            string
	CreatedTS         int64
}

LLMCache is one cached LLM-step output, keyed by (step, processing_version, input_hash) so an unchanged input+version never re-hits the model.

func (LLMCache) TableName

func (LLMCache) TableName() string

TableName is the llm_cache table.

type SyncState

type SyncState struct {
	Owner        string
	Repo         string
	LastSyncedTS int64
}

SyncState records the last synced unix timestamp per (owner, repo) so the incremental sync only fetches events newer than the last run.

func (SyncState) TableName

func (SyncState) TableName() string

TableName is the sync_state table.

type Template

type Template struct {
	ID          string
	Name        string
	Description string
	Form        string
	Transform   string
	Layout      string
	Exports     string
	Model       string
	Builtin     bool
	CreatedTS   int64
}

Template is a persisted programmatic template. Form / Transform / Layout / Exports hold the JSON-encoded sub-structures of template.Template.

func (Template) TableName

func (Template) TableName() string

TableName is the templates table.

Jump to

Keyboard shortcuts

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