schema

package
v0.0.0-...-155c645 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

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 Message

type Message struct {
	Event *Event `json:"event"`
}

Message kafka message event

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

type Project

type Project struct {
	Name       string `json:"name,omitempty"`
	Identifier string `json:"identifier"`
	URL        string `json:"url,omitempty"`
}

Project schema

type Version

type Version struct {
	Event      *Event `json:"event,omitempty"`
	Identifier int    `json:"identifier"`
	Comment    string `json:"comment,omitempty"`
}

Version schema

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL