people

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package people owns the M4 "people" plugin. It fetches followers / following lists via GraphQL. Upstream supports additional types (sponsors, contributors, stargazers, watchers, members) — the M4 MVP wires followers + following only; the remaining types are recorded with an empty list so consumers can see the slot, and a WARN log fires for unknown types per contract §4.

Contracts: specs/004-m4-github-plugins/contracts/plugin-p2-graphql.md §4 Data model: specs/004-m4-github-plugins/data-model.md E-025

Index

Constants

View Source
const Name = "people"

Name is the canonical plugin slug.

Variables

View Source
var Plugin plugins.Plugin = &peoplePlugin{}

Plugin is the singleton registered with the global plugin registry.

Functions

func Partial

Partial renders the people fragment. DOM contract: <g class="person"> + <image class="avatar"> per entry.

Types

type Person

type Person struct {
	Login     string `json:"login"`
	Name      string `json:"name"`
	AvatarURL string `json:"avatarUrl"`
}

Person mirrors one entry from the upstream people list.

type Result

type Result struct {
	Skipped       bool                `json:"skipped,omitempty"`
	SkippedReason string              `json:"-"`
	Mode          string              `json:"mode,omitempty"`
	Types         map[string][]Person `json:"types"`
}

Result is the JSON payload published under data.Plugins["people"].

func (*Result) IsSkipped

func (r *Result) IsSkipped() bool

IsSkipped lets the classic dispatcher detect the skipped path.

Jump to

Keyboard shortcuts

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