config

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultAPIURL is the production API URL
	DefaultAPIURL = "https://api.keyway.sh"

	// DefaultDashboardURL is the production dashboard URL
	DefaultDashboardURL = "https://app.keyway.sh"

	// DefaultPostHogHost is the PostHog host
	DefaultPostHogHost = "https://eu.i.posthog.com"
)

Variables

View Source
var (
	PostHogKey = ""
)

Blank by default - set via build or env

Functions

func GetAPIURL

func GetAPIURL() string

GetAPIURL returns the API URL from env or default

func GetDashboardURL added in v0.5.0

func GetDashboardURL() string

GetDashboardURL returns the dashboard URL from env or default

func GetPostHogHost

func GetPostHogHost() string

GetPostHogHost returns the PostHog host

func GetPostHogKey

func GetPostHogKey() string

GetPostHogKey returns the PostHog API key

func GetToken

func GetToken() string

GetToken returns the KEYWAY_TOKEN from env (for CI use)

func IsCI

func IsCI() bool

IsCI returns true if running in CI environment

func IsTelemetryDisabled

func IsTelemetryDisabled() bool

IsTelemetryDisabled returns true if telemetry is disabled

Types

This section is empty.

Jump to

Keyboard shortcuts

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