Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidOrderingFields = []ArticleOrderingField{ ArticleOrderingFieldPublishedAt, ArticleOrderingFieldAuthors, ArticleOrderingFieldSource, ArticleOrderingFieldTitle, }
Functions ¶
func ContextWithLogger ¶
Types ¶
type ArticleFilters ¶
type ArticleListMetadata ¶
type ArticleListMetadata struct {
TotalRows int `json:"total_rows"`
}
type ArticleListOptions ¶
type ArticleListOptions struct { Limit int64 Ordering []ArticleOrdering Page, PageSize int }
type ArticleOrdering ¶
type ArticleOrdering struct { Field ArticleOrderingField Desc bool }
type ArticleOrderingField ¶
type ArticleOrderingField string
const ArticleOrderingFieldAuthors ArticleOrderingField = "authors"
const ArticleOrderingFieldPublishedAt ArticleOrderingField = "published_at"
const ArticleOrderingFieldSource ArticleOrderingField = "source"
const ArticleOrderingFieldTitle ArticleOrderingField = "title"
type SimilarArticle ¶
Click to show internal directories.
Click to hide internal directories.