githubembed

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmbedEngine

type EmbedEngine struct {
	// contains filtered or unexported fields
}

func NewEmbedEngine

func NewEmbedEngine() *EmbedEngine

func (*EmbedEngine) EmbedMarkdown

func (e *EmbedEngine) EmbedMarkdown(username string, embed *GitHubEmbed) string

func (*EmbedEngine) Generate3DGraph

func (e *EmbedEngine) Generate3DGraph(username string, days []int64) *GitHubEmbed

func (*EmbedEngine) GenerateBadge

func (e *EmbedEngine) GenerateBadge(username string, savings int64, tier string) *GitHubEmbed

func (*EmbedEngine) GenerateCard

func (e *EmbedEngine) GenerateCard(username string, savings int64, tier string, commands int) *GitHubEmbed

func (*EmbedEngine) GetBadge

func (e *EmbedEngine) GetBadge(username string) *GitHubEmbed

type EmbedType

type EmbedType string
const (
	EmbedBadge EmbedType = "badge"
	EmbedCard  EmbedType = "card"
	Embed3D    EmbedType = "3d"
)

type GitHubEmbed

type GitHubEmbed struct {
	Type    EmbedType `json:"type"`
	Content string    `json:"content"`
	URL     string    `json:"url"`
}

Jump to

Keyboard shortcuts

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