Documentation ¶
Overview ¶
Package schema provides simple JSON-LD type annotations for structs.
Index ¶
Constants ¶
View Source
const ( EventStatusSingular = "singular" EventStatusInProgress = "in_progress" EventStatusStarted = "started" EventStatusEnded = "ended" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attachment ¶
type Attachment struct { *Thing Fallback string `json:"fallback,omitempty"` Color string `json:"color,omitempty"` Pretext string `json:"pretext,omitempty"` AuthorName string `json:"author_name,omitempty"` AuthorLink string `json:"author_link,omitempty"` AuthorIcon string `json:"author_icon,omitempty"` Title string `json:"title,omitempty"` TitleLink string `json:"title_link,omitempty"` Fields []AttachmentField `json:"fields,omitempty"` Text string `json:"text,omitempty"` ImageUrl string `json:"image_url,omitempty"` ThumbUrl string `json:"thumb_url,omitempty"` Time time.Time `json:"time,omitempty"` Actions []interface{} `json:"actions,omitempty"` }
type AttachmentField ¶
type CancelAction ¶
type CancelAction Action
type ConfirmAction ¶
type ConfirmAction Action
type Content ¶
type DeleteAction ¶
type DeleteAction Action
type Event ¶
type Event struct { Timestamp time.Time `json:"timestamp,omitempty"` Subject string `json:"subject,omitempty"` SubjectType string `json:"subject_type,omitempty"` Verb string `json:"verb,omitempty"` Object string `json:"object,omitempty"` ObjectType string `json:"object_type,omitempty"` Status string `json:"status,omitempty"` Source string `json:"source,omitempty"` Text string `json:"-"` Meta map[string]interface{} `json:"meta,omitempty" sql:"-"` }
type GeofenceChange ¶
type GeofenceChange struct { Location Location `json:"loc,omitempty"` Fence Geofence `json:"fence,omitempty"` Status string `json:"status,omitempty"` }
func (GeofenceChange) Text ¶
func (m GeofenceChange) Text() string
type Location ¶
type MultipleChoiceAction ¶
type TextEntryAction ¶
type TextEntryAction Action
Source Files ¶
Click to show internal directories.
Click to hide internal directories.