Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventTypeUpdate = "update" EventTypeCreate = "create" EventTypeDelete = "delete" )
Variables ¶
View Source
var ( TopicPages = "loc.pages.v1" TopicVersions = "loc.versions.v1" )
Functions ¶
This section is empty.
Types ¶
type ArticleBody ¶
type ArticleBody struct { Text string `json:"text"` EncodingFormat string `json:"encoding_format"` }
ArticleBody content of the page
type Event ¶
type Event struct { UUID string `json:"uuid"` Type string `json:"type"` Date time.Time `json:"date"` }
Event representation of event in kaka topic
type Page ¶
type Page struct { Event *Event `json:"event,omitempty"` Name string `json:"name,omitempty"` Identifier int `json:"identifier"` Version *Version `json:"version,omitempty"` DateModified time.Time `json:"date_modified,omitempty"` URL string `json:"url,omitempty"` IsPartOf *Project `json:"is_part_of,omitempty"` ArticleBody []*ArticleBody `json:"article_body,omitempty"` }
Page schema
Click to show internal directories.
Click to hide internal directories.