config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultPath

func DefaultPath() (string, error)

Types

type Config

type Config struct {
	Profiles map[string]Profile `json:"profiles"`
}

func Load

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

func (*Config) Profile

func (c *Config) Profile(name string) Profile

func (*Config) Save

func (c *Config) Save(path string) error

func (*Config) SetProfile

func (c *Config) SetProfile(name string, profile Profile)

type Profile

type Profile struct {
	ClientID     string `json:"client_id"`
	ClientSecret string `json:"client_secret"`
	RedirectURI  string `json:"redirect_uri"`
	UserAgent    string `json:"user_agent"`
	BaseURL      string `json:"base_url"`
}

Jump to

Keyboard shortcuts

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