Documentation
¶
Index ¶
Constants ¶
View Source
const MaxNotes = 50
MaxNotes is how many notes one call reads: an agent's batch, not the account.
Variables ¶
View Source
var ErrInvalid = errors.New("between 1 and 50 notes, and max_chars not negative")
Functions ¶
Types ¶
type Note ¶
type Note struct {
readitem.Result
Length *int `json:"length,omitempty" binding:"optional"` // the whole content's characters, given with max_chars
Truncated bool `json:"truncated,omitempty" binding:"optional"`
}
Note is a note as readitem gives it, with the whole content's length and truncated when max_chars cut it.
Click to show internal directories.
Click to hide internal directories.