models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Users         = database.Manage(DB, new(User))
	Repositories  = database.Manage(DB, new(Repository))
	Domains       = database.Manage(DB, new(Domain))
	Conversations = database.Manage(DB, new(Conversation))
	Tasks         = database.Manage(DB, new(Task))
	LogEntries    = database.Manage(DB, new(LogEntry))
	Plans         = database.Manage(DB, new(Plan))
)

Functions

This section is empty.

Types

type Conversation

type Conversation struct {
	database.Model
	Title    string
	Messages string // JSON array of messages
}

Conversation stores an AI agent chat session.

type Domain

type Domain struct {
	database.Model
	Host          string // Full domain (e.g., "app1.congo.gg")
	Target        string // Container name (e.g., "myapp-api")
	Port          int    // Container port
	ContainerName string // Links to service container (e.g., "myapp-api")
	Active        bool
	System        bool // System routes (dashboard) are not deletable
}

Domain represents a domain route mapping for reverse proxy.

type LogEntry

type LogEntry struct {
	database.Model
	Type    string // work, morning, alert, system, deploy
	Summary string
	Detail  string
	Author  string // twin, connor, system
}

LogEntry is a structured activity log from the twin or the system.

func (*LogEntry) Ago

func (e *LogEntry) Ago() string

Ago returns a human-readable relative time string.

type Plan

type Plan struct {
	database.Model
	Name        string
	Description string
	Status      string // draft, proposed, approved, done, rejected
	Criteria    string // acceptance criteria
	Blocked     string // blocked items
}

Plan is a design document that can be approved or rejected.

type Repository

type Repository struct {
	database.Model
	Name         string
	URL          string
	Path         string // On-disk path
	Branch       string
	Status       string // cloned/discovered/missing/error
	StatusDetail string // clean/modified/ahead
}

Repository represents a git repository on disk.

func (*Repository) ShortURL

func (r *Repository) ShortURL() string

ShortURL returns a shortened display version of the git URL.

type Task

type Task struct {
	database.Model
	Title       string
	Description string
	Priority    string // high, medium, low
	Status      string // todo, in_progress, done, blocked
	Blocked     string // reason if blocked
	Assignee    string // twin, connor, or empty
	Category    string // domains, ping, congo, infra, etc
}

Task is a structured work item with priority and assignment. Replaces the overloaded Activity model for task tracking.

type User

type User struct {
	database.Model
	Username     string
	PasswordHash string
}

User is the admin user for single-user auth.

Jump to

Keyboard shortcuts

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