spec

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 1 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	ID    int    `json:"id"`
	Slug  string `json:"slug"`
	Title string `json:"title"`
	Price int    `json:"price"`
	Mode  string `json:"mode,omitempty"`
}

type CatalogEntry

type CatalogEntry struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Slug  string `json:"slug"`
	APIs  []API  `json:"apis"`
}

type Category

type Category struct {
	ID    int    `json:"id"`
	Title string `json:"title"`
	Slug  string `json:"slug"`
	Order int    `json:"order"`
}

type Detail

type Detail struct {
	ID          int      `json:"id"`
	Title       string   `json:"title"`
	Slug        string   `json:"slug"`
	Description string   `json:"description"`
	Price       int      `json:"price"`
	Mode        string   `json:"mode,omitempty"`
	ModeMessage string   `json:"mode_message,omitempty"`
	Category    Category `json:"category"`
	Schema      Schema   `json:"schema"`
}

type Items

type Items struct {
	Type string            `json:"type"`
	Enum []json.RawMessage `json:"enum,omitempty"`
}

type Property

type Property struct {
	Type                 string            `json:"type"`
	Title                string            `json:"title"`
	Description          string            `json:"description"`
	Default              json.RawMessage   `json:"default,omitempty"`
	Enum                 []json.RawMessage `json:"enum,omitempty"`
	Items                *Items            `json:"items,omitempty"`
	AdditionalProperties json.RawMessage   `json:"additionalProperties,omitempty"`
	UniqueItems          bool              `json:"uniqueItems,omitempty"`
}

type Schema

type Schema struct {
	Title       string              `json:"title"`
	Description string              `json:"description"`
	Method      string              `json:"method"`
	URL         string              `json:"url"`
	Cost        int                 `json:"cost"`
	Required    []string            `json:"required"`
	Properties  map[string]Property `json:"properties"`
}

Jump to

Keyboard shortcuts

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