api

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BaseURL = "https://stellar-hub.vercel.app"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorInfo

type AuthorInfo struct {
	ID    string  `json:"id"`
	Name  string  `json:"name"`
	Image *string `json:"image"`
	Bio   *string `json:"bio"`
}

Author info nested in theme response

type Client

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

func NewClient

func NewClient() *Client

func (*Client) FetchThemeConfig

func (c *Client) FetchThemeConfig(author, name, version string) (string, error)

func (*Client) GetThemeInfo

func (c *Client) GetThemeInfo(author, name string) (*ThemeInfo, error)

func (*Client) IncrementDownloadCount

func (c *Client) IncrementDownloadCount(author, name string) error

type ThemeInfo

type ThemeInfo struct {
	ID          string        `json:"id"`
	Author      AuthorInfo    `json:"author"`
	Name        string        `json:"name"`
	Slug        string        `json:"slug"`
	Description string        `json:"description"`
	Downloads   int           `json:"downloads"`
	ColorScheme *string       `json:"colorScheme"`
	Group       string        `json:"group"`
	Versions    []VersionInfo `json:"versions"`
	CreatedAt   string        `json:"createdAt"`
	UpdatedAt   string        `json:"updatedAt"`
}

Theme info from API

type VersionInfo

type VersionInfo struct {
	Version           string                   `json:"version"`
	VersionNotes      string                   `json:"versionNotes"`
	Dependencies      []map[string]interface{} `json:"dependencies"`
	InstallationNotes string                   `json:"installationNotes"`
	CreatedAt         string                   `json:"createdAt"`
}

Version info

Jump to

Keyboard shortcuts

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