config

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFilePath

func ConfigFilePath(homeDir string) string

Types

type Config

type Config struct {
	FilePath string `yaml:"-"`

	BaseURL string `yaml:"base_url"`

	APIBaseURL string `yaml:"api_base_url"`

	SessionID string `yaml:"session_id"`

	AccessToken string `yaml:"access_token"`

	PlaysDir string `yaml:"plays_dir"`

	SSHDir string `yaml:"ssh_dir"`
	// contains filtered or unexported fields
}

func Default

func Default(homeDir string) *Config

func Load

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

func (*Config) Dump

func (c *Config) Dump() error

func (*Config) WebSocketOrigin added in v0.1.0

func (c *Config) WebSocketOrigin() string

Jump to

Keyboard shortcuts

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