Documentation
¶
Overview ¶
Package hyper provides a fantasy.Provider that proxies requests to Hyper.
Index ¶
Constants ¶
View Source
const ( // Name is the default name of this meta provider. Name = "hyper" // DisplayName is the display name of Hyper. DisplayName = "Charm Hyper" )
Variables ¶
View Source
var BaseURL = sync.OnceValue(func() string { return cmp.Or(os.Getenv("HYPER_URL"), defaultBaseURL) })
BaseURL returns the base URL, which is either $HYPER_URL or the default.
View Source
var Embedded = sync.OnceValue(func() catwalk.Provider { var provider catwalk.Provider if err := json.Unmarshal(embedded, &provider); err != nil { slog.Error("Could not use embedded provider data", "err", err) } if e := os.Getenv("HYPER_URL"); e != "" { provider.APIEndpoint = e + "/api/v1/fantasy" } return provider })
Embedded returns the embedded Hyper provider.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.