Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommitDetailsMsg ¶ added in v0.412.3
CommitDetailsMsg carries full commit details and diff for rendering in the detail panel.
type CommitListMsg ¶ added in v0.412.3
CommitListMsg is sent to populate the commit table for a selected session.
type CommitRow ¶ added in v0.412.3
type CommitRow struct {
ID string
ShortID string
ParentID string
SessionID string
Type string
Description string
FileCount int
TotalSize int64
CreatedAt int64
}
CommitRow is a lightweight representation of a commit used for table rendering.
type CommitsTableComponent ¶ added in v0.412.3
CommitsTableComponent is the public interface for the commits table component.
func NewCommitsTable ¶ added in v0.412.3
func NewCommitsTable() CommitsTableComponent
type DetailComponent ¶
DetailComponent is the public interface for the commit detail component.
func NewSnapshotsDetails ¶
func NewSnapshotsDetails() DetailComponent
NewSnapshotsDetails creates and returns a new snapshot detail component.
type RevertCommitMsg ¶ added in v0.412.3
type RevertCommitMsg struct {
CommitID string
}
RevertCommitMsg requests that the given commit be reverted to disk.
type SelectedCommitMsg ¶ added in v0.412.3
type SelectedCommitMsg struct {
Commit CommitRow
}
SelectedCommitMsg is published when the user selects a commit row.
type SelectedSessionMsg ¶ added in v0.412.3
type SelectedSessionMsg struct {
SessionID string
}
SelectedSessionMsg is published when the user selects a session row.
type SessionListMsg ¶ added in v0.412.3
type SessionListMsg struct {
Sessions []SessionRow
}
SessionListMsg is sent to populate the session table.
type SessionRow ¶ added in v0.412.3
type SessionRow struct {
SessionID string
CommitCount int
LatestAt int64
LatestCommit string
Description string
}
SessionRow is a lightweight representation of a session used for table rendering.
type SessionsTableComponent ¶ added in v0.412.3
SessionsTableComponent is the public interface for the sessions table component.
func NewSessionsTable ¶ added in v0.412.3
func NewSessionsTable() SessionsTableComponent