config

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DefaultEndpointURL = "https://app.loops.so/api/v1"
)

Variables

This section is empty.

Functions

func ConfigDir added in v0.0.3

func ConfigDir() (string, error)

func Delete

func Delete(name string) error

func EndpointURL

func EndpointURL() string

func Get added in v0.8.2

func Get(name string) (string, error)

func Save

func Save(apiKey, name string) error

func SavePersistentConfig

func SavePersistentConfig(pc *PersistentConfig) error

func SetActiveTeam

func SetActiveTeam(name string) error

Types

type Config

type Config struct {
	APIKey      string
	EndpointURL string
	Debug       bool
}

func Load

func Load(teamOverride string) (*Config, error)

type KeyEntry

type KeyEntry struct {
	Name   string
	APIKey string
}

func ListKeys

func ListKeys() ([]KeyEntry, error)

type PersistentConfig

type PersistentConfig struct {
	ActiveTeam string   `yaml:"activeTeam"`
	Teams      []string `yaml:"teams"`
}

func LoadPersistentConfig

func LoadPersistentConfig() (*PersistentConfig, error)

Jump to

Keyboard shortcuts

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