config

package
v0.5.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultBaseURL = "https://api.elevenlabs.io"
	EnvAPIKey      = "ELEVENLABS_API_KEY"
)

Variables

This section is empty.

Functions

func Path

func Path() (string, error)

func RedactedKey

func RedactedKey(key string) string

func Save

func Save(cfg Config) (string, error)

Types

type Config

type Config struct {
	APIKey  string `json:"api_key,omitempty"`
	BaseURL string `json:"base_url,omitempty"`
}

func Load

func Load() (Config, string, bool, error)

type Runtime

type Runtime struct {
	APIKey        string
	APIKeySource  string
	BaseURL       string
	BaseURLSource string
	ConfigPath    string
	ConfigFound   bool
}

func Resolve

func Resolve(apiKeyFlag, baseURLFlag string) (Runtime, error)

Jump to

Keyboard shortcuts

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