config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 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 Delete

func Delete(name string) error

func EndpointURL

func EndpointURL() string

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