Documentation ¶
Index ¶
- func IsTombStone(cmpl Completion) bool
- type Completion
- type Data
- type Tombstone
- func (c Tombstone) Content() string
- func (c Tombstone) Model() string
- func (c Tombstone) Timestamp() time.Time
- func (c Tombstone) Usage() Usage
- func (c Tombstone) WithContent(content string) Tombstone
- func (c Tombstone) WithModel(model string) Tombstone
- func (c Tombstone) WithTimestamp(t time.Time) Tombstone
- func (c Tombstone) WithUsage(usage Usage) Tombstone
- type Usage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTombStone ¶
func IsTombStone(cmpl Completion) bool
Types ¶
type Completion ¶
Completion is a union type that can be either a CompletionData or a CompletionTombStone. This is used to represent completions in the completion history. A completion will always end up as a CompletionTomStone after it has been used.
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
Data is a struct that represents the data of a completion.
func NewCompletionData ¶
func (Data) WithContent ¶
type Tombstone ¶
type Tombstone struct {
// contains filtered or unexported fields
}
A completion tombstone is the final state of a completion.
func NewCompletionTombStone ¶
func (Tombstone) WithContent ¶
Click to show internal directories.
Click to hide internal directories.