Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageMetadata ¶
type ImageMetadata struct { Id int `storm:"id,increment"` Hash string `storm:"index"` CapturedAt time.Time `storm:"index"` FileName string `storm:"index,unique"` Record int `storm:"index"` }
ImageMetadata stores metadata bout an image.
More than one ImageMetadata may exist for a single Image record.
type KeyphraseType ¶
type KeyphraseType int
KeyphraseType enumerates the types of keyphrase.
const ( // KeyphraseTypeNone represents text that is not a keyphrase. KeyphraseTypeNone KeyphraseType = iota // KeyphraseTypeBlue represents a blue keyphrase. KeyphraseTypeBlue // KeyphraseTypeGreen represents a greenkeyphrase. KeyphraseTypeGreen )
func (KeyphraseType) MarshalText ¶
func (t KeyphraseType) MarshalText() ([]byte, error)
func (*KeyphraseType) UnmarshalText ¶
func (t *KeyphraseType) UnmarshalText(text []byte) error
type Record ¶
type Record struct { Id int `storm:"id,increment" json:"id"` Type RecordType `storm:"index" json:"type"` Text string `json:"text"` Subject string `json:"subject,omitempty"` Index *int `json:"index,omitempty"` Keyphrases map[KeyphraseType][]string `json:"keyphrases"` }
Record represents a piece of interesting data in La Mulana
type RecordType ¶
type RecordType int
RecordType enumerates the types of records.
const ( // RecordTypeTent is a record taken inside a tent. RecordTypeTent RecordType = iota // RecordTypeMailer is a record taken from the xelpud mailer. RecordTypeMailer // RecordTypeScanner is a record taken from a tablet. RecordTypeScanner // RecordTypeUnknown is a record from a screenshot that is not recognized. RecordTypeUnknown )
func (RecordType) MarshalText ¶
func (t RecordType) MarshalText() ([]byte, error)
func (*RecordType) UnmarshalText ¶
func (t *RecordType) UnmarshalText(text []byte) error
Click to show internal directories.
Click to hide internal directories.