models

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LastInput  string `json:"last_input"`
	RunningPID int    `json:"running_pid"`
}

type EntryOnDetailPage

type EntryOnDetailPage struct {
	InputState *InputState
}

type EntryView

type EntryView struct {
	ID   int64
	Text string

	Done bool

	CreateTime time.Time
	UpdateTime time.Time

	DetailPage *EntryOnDetailPage

	Notes []*NoteView
}

type InputState

type InputState struct {
	Value          string
	Focused        bool
	CursorPosition int
}

type LogEntry

type LogEntry struct {
	ID         int64     `json:"id"`
	Text       string    `json:"text"`
	Done       bool      `json:"done"`
	CreateTime time.Time `json:"create_time"`
	UpdateTime time.Time `json:"update_time"`
}

type LogEntryLegacy

type LogEntryLegacy struct {
	Timestamp time.Time `json:"timestamp"`
	EventType string    `json:"event_type"`
	TodoID    int       `json:"todo_id"`
	TodoData  LogEntry  `json:"todo_data"`
}

type LogEntryOptional

type LogEntryOptional struct {
	ID         *int64     `json:"id"`
	Text       *string    `json:"text"`
	Done       *bool      `json:"done"`
	CreateTime *time.Time `json:"create_time"`
	UpdateTime *time.Time `json:"update_time"`
}

type Note

type Note struct {
	ID         int64     `json:"id"`
	EntryID    int64     `json:"entry_id"`
	Text       string    `json:"text"`
	CreateTime time.Time `json:"create_time"`
	UpdateTime time.Time `json:"update_time"`
}

type NoteOptional

type NoteOptional struct {
	ID         *int64     `json:"id"`
	EntryID    *int64     `json:"entry_id"`
	Text       *string    `json:"text"`
	CreateTime *time.Time `json:"create_time"`
	UpdateTime *time.Time `json:"update_time"`
}

type NoteView

type NoteView struct {
	ID   int64
	Text string
}

Jump to

Keyboard shortcuts

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