config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFilePath

func ConfigFilePath() (string, error)

Types

type Config

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

	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(path string) *Config

func Load

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

func (*Config) Dump

func (c *Config) Dump() error

Jump to

Keyboard shortcuts

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