cloudstatus

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

Index holds the parsed cloud status service data for searching.

func NewIndex

func NewIndex() (*Index, error)

NewIndex loads and parses all embedded fixture files into a searchable index.

func (*Index) Providers

func (idx *Index) Providers() []string

Providers returns all unique provider (group) names, sorted alphabetically.

func (*Index) Search

func (idx *Index) Search(provider, query string, page, pageSize int) SearchResult

Search finds services matching the given criteria. Provider filters by exact group name. Query does case-insensitive substring match on service name. If both provider and query are empty, all services are returned (subject to pagination).

type SearchResult

type SearchResult struct {
	Services   []Service
	TotalCount int
}

SearchResult holds a paginated search result.

type Service

type Service struct {
	Name  string `json:"name"`
	Group string `json:"group"`
}

Service represents a cloud status service entry.

Jump to

Keyboard shortcuts

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