models

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 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 {
	Data *LogEntry

	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"`
	AdjustedTopTime int64     `json:"adjusted_top_time"`
	HighlightLevel  int       `json:"highlight_level"`
}

func (*LogEntry) Update added in v0.0.3

func (c *LogEntry) Update(optional *LogEntryOptional)

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"`
	AdjustedTopTime *int64     `json:"adjusted_top_time"`
	HighlightLevel  *int       `json:"highlight_level"`
}

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 {
	Data *Note
}

Jump to

Keyboard shortcuts

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