Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶ added in v0.3.1
type Entity struct { Total int `db:"total" json:"-"` ID string `json:"id" db:"id"` ManifestID int `json:"manifest_id" db:"manifest_id"` ManifestGUID string `json:"manifest_guid" db:"manifest_guid"` Type string `json:"type" db:"type"` Role string `json:"role" db:"role"` Name string `json:"name" db:"name"` Description string `json:"description" db:"description"` WebpageURL string `json:"webpage_url" db:"webpage_url"` NumProjects int `json:"num_projects" db:"num_projects"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` }
func (Entity) MarshalEasyJSON ¶ added in v0.3.1
MarshalEasyJSON supports easyjson.Marshaler interface
func (Entity) MarshalJSON ¶ added in v0.3.1
MarshalJSON supports json.Marshaler interface
func (*Entity) UnmarshalEasyJSON ¶ added in v0.3.1
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Entity) UnmarshalJSON ¶ added in v0.3.1
UnmarshalJSON supports json.Unmarshaler interface
type EntityURL ¶
type EntityURL struct {
WebpageURL string `json:"webpage_url"`
}
func (EntityURL) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (EntityURL) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*EntityURL) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*EntityURL) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type ManifestData ¶
type ManifestData struct { v1.Manifest // These are not in the table and are added by the get-manifest query. EntityRaw types.JSONText `db:"entity_raw" json:"-"` ProjectsRaw types.JSONText `db:"projects_raw" json:"-"` FundingRaw types.JSONText `db:"funding_raw" json:"-"` Channels map[string]v1.Channel `db:"-" json:"-"` ID int `db:"id" json:"id"` GUID string `db:"guid" json:"guid"` Version string `db:"version" json:"version"` URL string `db:"url" json:"url"` Meta types.JSONText `db:"meta" json:"meta"` Status string `db:"status" json:"status"` StatusMessage *string `db:"status_message" json:"status_message"` CrawlErrors int `db:"crawl_errors" json:"crawl_errors"` CrawlMessage *string `db:"crawl_message" json:"crawl_message"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` }
func (ManifestData) MarshalEasyJSON ¶
func (v ManifestData) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ManifestData) MarshalJSON ¶
func (v ManifestData) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ManifestData) UnmarshalEasyJSON ¶
func (v *ManifestData) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ManifestData) UnmarshalJSON ¶
func (v *ManifestData) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ManifestExport ¶ added in v0.3.1
type ManifestExport struct { ID int `db:"id" json:"id"` URL string `db:"url" json:"url"` Status string `db:"status" json:"status"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` ManifestJSON json.RawMessage `db:"manifest_json" json:"manifest_json"` }
func (ManifestExport) MarshalEasyJSON ¶ added in v0.3.1
func (v ManifestExport) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ManifestExport) MarshalJSON ¶ added in v0.3.1
func (v ManifestExport) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ManifestExport) UnmarshalEasyJSON ¶ added in v0.3.1
func (v *ManifestExport) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ManifestExport) UnmarshalJSON ¶ added in v0.3.1
func (v *ManifestExport) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ManifestJob ¶
type Project ¶ added in v0.3.1
type Project struct { Total int `db:"total" json:"-"` ID string `db:"id" json:"id"` GUID string `db:"guid" json:"guid"` ManifestID int `db:"manifest_id" json:"manifest_id"` ManifestGUID string `db:"manifest_guid" json:"manifest_guid"` EntityName string `db:"entity_name" json:"entity_name"` EntityType string `db:"entity_type" json:"entity_type"` EntityNumProjects int `db:"entity_num_projects" json:"entity_num_projects"` Name string `db:"name" json:"name"` Description string `db:"description" json:"description"` WebpageURL string `db:"webpage_url" json:"webpage_url"` RepositoryURL string `db:"repository_url" json:"repository_url"` Licenses pq.StringArray `db:"licenses" json:"licenses"` Tags pq.StringArray `db:"tags" json:"tags"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` }
func (Project) MarshalEasyJSON ¶ added in v0.3.1
MarshalEasyJSON supports easyjson.Marshaler interface
func (Project) MarshalJSON ¶ added in v0.3.1
MarshalJSON supports json.Marshaler interface
func (*Project) UnmarshalEasyJSON ¶ added in v0.3.1
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Project) UnmarshalJSON ¶ added in v0.3.1
UnmarshalJSON supports json.Unmarshaler interface
type ProjectURL ¶
type ProjectURL struct { WebpageURL string `json:"webpage_url"` RepositoryURL string `json:"repository_url"` }
func (ProjectURL) MarshalEasyJSON ¶
func (v ProjectURL) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ProjectURL) MarshalJSON ¶
func (v ProjectURL) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ProjectURL) UnmarshalEasyJSON ¶
func (v *ProjectURL) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ProjectURL) UnmarshalJSON ¶
func (v *ProjectURL) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface
type ProjectURLs ¶
type ProjectURLs []ProjectURL
func (ProjectURLs) MarshalEasyJSON ¶
func (v ProjectURLs) MarshalEasyJSON(w *jwriter.Writer)
MarshalEasyJSON supports easyjson.Marshaler interface
func (ProjectURLs) MarshalJSON ¶
func (v ProjectURLs) MarshalJSON() ([]byte, error)
MarshalJSON supports json.Marshaler interface
func (*ProjectURLs) UnmarshalEasyJSON ¶
func (v *ProjectURLs) UnmarshalEasyJSON(l *jlexer.Lexer)
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ProjectURLs) UnmarshalJSON ¶
func (v *ProjectURLs) UnmarshalJSON(data []byte) error
UnmarshalJSON supports json.Unmarshaler interface