copilot

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package copilot implements the GitHub Copilot usage provider.

Auth: GitHub OAuth token from ~/.config/github-copilot/hosts.json, apps.json, or $GITHUB_TOKEN env var. Endpoint: GET https://api.github.com/copilot_internal/user

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{}

Provider fetches Copilot usage data.

func (Provider) BrandBg added in v0.3.0

func (Provider) BrandBg() string

func (Provider) BrandColor

func (Provider) BrandColor() string

func (Provider) Fetch

func (Provider) ID

func (Provider) ID() string

func (Provider) MetricIDs

func (Provider) MetricIDs() []string

func (Provider) Name

func (Provider) Name() string

Jump to

Keyboard shortcuts

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