Documentation
¶
Overview ¶
Package cli builds the douban command tree on top of the douban library.
Index ¶
Constants ¶
View Source
const ( FormatTable = render.FormatTable FormatJSON = render.FormatJSON FormatJSONL = render.FormatJSONL FormatCSV = render.FormatCSV FormatTSV = render.FormatTSV FormatURL = render.FormatURL FormatRaw = render.FormatRaw )
Variables ¶
View Source
var ( Version = "dev" Commit = "none" Date = "unknown" )
Build metadata, set via -ldflags at release time.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App holds shared state threaded through every command.
type QueueRow ¶ added in v0.2.0
type QueueRow struct {
URL string `json:"url"`
EntityType string `json:"entity_type"`
EntityID string `json:"entity_id"`
Source string `json:"source"`
Status string `json:"status"`
Attempts int `json:"attempts"`
HTTPStatus int `json:"http_status,omitempty"`
Error string `json:"error,omitempty"`
}
QueueRow is the rendered shape of a frontier row.
Click to show internal directories.
Click to hide internal directories.