Documentation
¶
Overview ¶
Package stargazers owns the M4 "stargazers" plugin. Per the contract this plugin targets the repository-template account kind, which M4 does not support yet. Worldmap (`_worldmap=true`) is explicitly deferred per research note R-012 — the M4 implementation always returns Skipped=true with an explanatory reason.
Contracts: specs/004-m4-github-plugins/contracts/plugin-p2-graphql.md §11 Data model: specs/004-m4-github-plugins/data-model.md E-032
Index ¶
Constants ¶
const Name = "stargazers"
Name is the canonical plugin slug.
Variables ¶
var Plugin plugins.Plugin = &stargazersPlugin{}
Plugin is the singleton registered with the global plugin registry.
Functions ¶
Types ¶
type ChartPoint ¶
ChartPoint is one data point on the stargazers chart.
type Result ¶
type Result struct {
Skipped bool `json:"skipped,omitempty"`
SkippedReason string `json:"-"`
Mode string `json:"mode,omitempty"`
List []Stargazer `json:"list"`
Charts StargazersCharts `json:"charts"`
Worldmap *StargazersWorldmap `json:"worldmap,omitempty"`
}
Result is the JSON payload published under data.Plugins["stargazers"]. Worldmap is always nil in M4 (R-012).
type Stargazer ¶
type Stargazer struct {
Login string `json:"login"`
StarredAt time.Time `json:"starredAt"`
Location string `json:"location"`
}
Stargazer represents one starrer.
type StargazersCharts ¶
type StargazersCharts struct {
Type string `json:"type"`
Series []ChartPoint `json:"series"`
}
StargazersCharts is the chart data slice.
type StargazersWorldmap ¶
type StargazersWorldmap struct{}
StargazersWorldmap is a placeholder that always serializes to null in M4 per R-012.