Documentation ¶
Index ¶
- Constants
- func ClientDir(slug string) string
- func ConfigDir() string
- func EnsureConfigFile()
- func GetSelectedClient() string
- func GetSelectedClientForServer(serverSlug string) string
- func GetSelectedServer() string
- func GetSessionDuration() time.Duration
- func IsSelectedServer() bool
- func ServerDir() string
- func SetDefaultSessionDuration()
- func SetDefaults()
- func SetSelectedClient(clientSlug string) error
- func SetSelectedServer(serverSlug string) error
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 EnsureConfigFile ¶
func EnsureConfigFile()
func GetSelectedClient ¶
func GetSelectedClient() string
func GetSelectedServer ¶
func GetSelectedServer() string
func GetSessionDuration ¶
func IsSelectedServer ¶
func IsSelectedServer() bool
func SetDefaultSessionDuration ¶
func SetDefaultSessionDuration()
func SetDefaults ¶
func SetDefaults()
func SetSelectedClient ¶
func SetSelectedServer ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.