Documentation
¶
Index ¶
- Variables
- type Entry
- func (en Entry) After(other Entry) (bool, error)
- func (en *Entry) Content() (string, []string, error)
- func (en Entry) ContentWithLimit(sizeLimit int) (string, []string, error)
- func (en Entry) Edit() error
- func (en Entry) FileAction(question string) error
- func (en Entry) HasHashtags() (bool, error)
- func (en Entry) HasTag(tag string) bool
- func (en *Entry) MarkPosted() error
- func (en *Entry) Name() string
- func (en Entry) Remove() error
- func (en Entry) String() string
- func (en Entry) Timestamp() (time.Time, error)
- type State
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSizeLimitExceeded = errors.New("message size limit exceeded")
)
View Source
var Zero = Entry{}
View Source
var Zeroes = []Entry{}
Functions ¶
This section is empty.
Types ¶
type Entry ¶
func New ¶
filePath format: /foo/foobarbaz.something.here.txt.STAMP.{posted,queued} or for inboxed: /foo.txt or inboxed with tags: /foo.prio.ask.txt
func (Entry) ContentWithLimit ¶
Returns the content and also checks for the size limit
func (Entry) FileAction ¶ added in v1.0.0
func (Entry) HasHashtags ¶ added in v1.0.0
func (*Entry) MarkPosted ¶
Click to show internal directories.
Click to hide internal directories.