config

package
v0.0.0-...-5df0669 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SelectedServerSlug = "selected_server_slug"
	SelectedClientSlug = "selected_client_slugs"
)
View Source
const (
	FileType     = "yaml"
	FileBaseName = "config"
	FileName     = FileBaseName + "." + FileType
)

Variables

This section is empty.

Functions

func ClientDir

func ClientDir(slug string) string

func ConfigDir

func ConfigDir() string

func EnsureConfigFile

func EnsureConfigFile()

func GetSelectedClient

func GetSelectedClient() string

func GetSelectedClientForServer

func GetSelectedClientForServer(serverSlug string) string

func GetSelectedServer

func GetSelectedServer() string

func GetSessionDuration

func GetSessionDuration() time.Duration

func IsSelectedServer

func IsSelectedServer() bool

func ServerDir

func ServerDir() string

func SetDefaultSessionDuration

func SetDefaultSessionDuration()

func SetDefaults

func SetDefaults()

func SetSelectedClient

func SetSelectedClient(clientSlug string) error

func SetSelectedServer

func SetSelectedServer(serverSlug string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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