model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package model defines the core issue, comment, and event types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Text    string    `json:"text"`
	Created time.Time `json:"created"`
	By      string    `json:"by"`
}

type Config

type Config struct {
	Transitions  map[string][]string `json:"transitions"`
	DefaultState string              `json:"default_state"`
	Types        []string            `json:"types"`
	DefaultType  string              `json:"default_type"`
	IDLength     int                 `json:"id_length"`
}

func DefaultConfig

func DefaultConfig() Config

type Event

type Event struct {
	Timestamp time.Time `json:"ts"`
	Op        string    `json:"op"`
	Fields    []string  `json:"fields,omitempty"`
	From      string    `json:"from,omitempty"`
	To        string    `json:"to,omitempty"`
	Text      string    `json:"text,omitempty"`
	By        string    `json:"by,omitempty"`
}

type Issue

type Issue struct {
	ID          string    `json:"id"`
	Title       string    `json:"title"`
	Status      string    `json:"status"`
	Type        string    `json:"type"`
	Priority    int       `json:"priority"`
	Labels      []string  `json:"labels"`
	Assignee    string    `json:"assignee,omitempty"`
	ParentID    string    `json:"parent_id,omitempty"`
	Created     time.Time `json:"created"`
	Updated     time.Time `json:"updated"`
	Description string    `json:"description,omitempty"`
	Comments    []Comment `json:"comments,omitempty"`
}

Jump to

Keyboard shortcuts

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