ecosystem

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package ecosystem provides protocol ecosystem health dashboard.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContribStats

type ContribStats struct {
	TotalProtocols int `json:"total_protocols"`
	Contributors   int `json:"contributors"`
	Downloads      int `json:"downloads"`
	Stars          int `json:"stars"`
}

ContribStats represents community contribution statistics.

type Dashboard

type Dashboard struct {
	Health  []HealthMetric `json:"health"`
	Contrib ContribStats   `json:"contributions"`
	Trends  []Trend        `json:"trends"`
}

Dashboard holds ecosystem dashboard data.

func NewDashboard

func NewDashboard() *Dashboard

NewDashboard creates a dashboard with sample data.

func (*Dashboard) Describe

func (d *Dashboard) Describe() string

Describe returns a text dashboard.

type HealthMetric

type HealthMetric struct {
	Name  string  `json:"name"`
	Value float64 `json:"value"`
	Unit  string  `json:"unit"`
}

HealthMetric represents an ecosystem health metric.

type Trend

type Trend struct {
	Protocol string  `json:"protocol"`
	Growth   float64 `json:"growth_percent"`
	Period   string  `json:"period"`
}

Trend represents a protocol usage trend.

Jump to

Keyboard shortcuts

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