data

package
v0.0.0-...-977eb4a Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MarkupArticle

type MarkupArticle struct {
	PublishedTime  string
	ModifiedTime   string
	ExpirationTime string
	Section        string
	Authors        []string
}

MarkupArticle is object to contains the properties of an article document.

type MarkupImage

type MarkupImage struct {
	Root      string
	URL       string
	SecureURL string
	Type      string
	Caption   string
	Width     int
	Height    int
}

MarkupImage is used to contains the properties of an image in the document.

type MarkupInfo

type MarkupInfo struct {
	Title       string
	Type        string
	URL         string
	Description string
	Publisher   string
	Copyright   string
	Author      string
	Article     MarkupArticle
	Images      []MarkupImage
}

type PaginationInfo

type PaginationInfo struct {
	NextPage string
	PrevPage string
}

type TimingEntry

type TimingEntry struct {
	Name string
	Time time.Duration
}

type TimingInfo

type TimingInfo struct {
	MarkupParsingTime        time.Duration
	DocumentConstructionTime time.Duration
	ArticleProcessingTime    time.Duration
	FormattingTime           time.Duration
	TotalTime                time.Duration

	// A place to hold arbitrary breakdowns of time. The perf scoring/server
	// should display these entries with appropriate names.
	OtherTimes []TimingEntry
}

func (*TimingInfo) AddEntry

func (ti *TimingInfo) AddEntry(start time.Time, name string)

Jump to

Keyboard shortcuts

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