Documentation
¶
Index ¶
- type Field
- type Page
- func (p *Page) GetAlternateMedias() map[string]string
- func (p *Page) GetCanonical() string
- func (p *Page) GetDescription() string
- func (p *Page) GetFAQ() map[string]string
- func (p *Page) GetH1() string
- func (p *Page) GetHTML() string
- func (p *Page) GetHeaders() map[string][]string
- func (p *Page) GetHrefLangs() map[string]string
- func (p *Page) GetID() vo.ID
- func (p *Page) GetPlainText() string
- func (p *Page) GetReason() *Reason
- func (p *Page) GetRelinkingBlock() map[string]map[string]string
- func (p *Page) GetTitle() string
- func (p *Page) GetURL() string
- func (p *Page) GetVersion() int
- func (p *Page) UpVersion(previous *Page)
- type Reason
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Field ¶
type Field struct { Message string `bson:"message"` PreviousValue interface{} `bson:"previousValue"` CurrentValue interface{} `bson:"currentValue"` }
func NewReasonField ¶
func (*Field) GetCurrentValue ¶
func (f *Field) GetCurrentValue() interface{}
func (*Field) GetMessage ¶
func (*Field) GetPreviousValue ¶
func (f *Field) GetPreviousValue() interface{}
type Page ¶
type Page struct { vo.ID `bson:",inline"` Version int `bson:"version"` URL string `bson:"url"` UserAgent string `bson:"userAgent"` Title string `bson:"title"` Description string `bson:"description"` Canonical string `bson:"canonical"` H1 string `bson:"h1"` PlainText string `bson:"plainText"` HTML string `bson:"html"` // FAQ is a map which contains map[question] = answer FAQ map[string]string `bson:"faq"` // HrefLangs is a map which contains map[rel + "_" + language] = link HrefLangs map[string]string `bson:"hrefLangs"` // AlternateMedias is a map which contains map[rel + "_" + media] = link AlternateMedias map[string]string `bson:"alternateMedias"` // RelinkingBlock is a map of maps which contains map[blockTitle][anchor] = link RelinkingBlock map[string]map[string]string `bson:"relinkingBlock"` // Headers is a map of slices which contains map[headerName][][headerValue1, headerValue2, ...] Headers map[string][]string `bson:"headers"` // Reason is a struct which contains the diff. of fields. Reason *Reason `bson:"reason,omitempty"` vo.Timestamp `bson:",inline"` }
func (*Page) GetAlternateMedias ¶
func (*Page) GetCanonical ¶
func (*Page) GetDescription ¶
func (*Page) GetHeaders ¶
func (*Page) GetHrefLangs ¶
func (*Page) GetPlainText ¶
func (*Page) GetVersion ¶
Click to show internal directories.
Click to hide internal directories.