Documentation
¶
Index ¶
- Constants
- func GetClientConfig(c *cli.Context) (string, *whoson.ClientConfig, error)
- func GetClientConfigDir() string
- func GetServerConfig(c *cli.Context) (string, *whoson.ServerConfig, error)
- func GetServerCtlConfig(c *cli.Context) (string, *whoson.ServerCtlConfig, error)
- func GetServerCtlConfigDir() string
- func Run() int
- type FileEdit
- type Versions
Constants ¶
View Source
const ( // ClientConfig is a config file name for client. ClientConfig = "client.json" // ServerConfig is a config file name for server. ServerConfig = "gowhoson.json" // ServerCtlConfig is a config file name for server control. ServerCtlConfig = "serverctl.json" )
Variables ¶
This section is empty.
Functions ¶
func GetClientConfig ¶
func GetClientConfig(c *cli.Context) (string, *whoson.ClientConfig, error)
GetClientConfig return client config file and new ClientConfig struct pointer and error.
func GetClientConfigDir ¶
func GetClientConfigDir() string
GetClientConfigDir return config file directory.
func GetServerConfig ¶
func GetServerConfig(c *cli.Context) (string, *whoson.ServerConfig, error)
GetServerConfig return server config file and new ServerConfig struct pointer and error.
func GetServerCtlConfig ¶
func GetServerCtlConfig(c *cli.Context) (string, *whoson.ServerCtlConfig, error)
GetServerCtlConfig return server config file and new ServerCtlConfig struct pointer and error.
func GetServerCtlConfigDir ¶
func GetServerCtlConfigDir() string
GetServerCtlConfigDir return config file directory.
Types ¶
type FileEdit ¶
type FileEdit struct { Editor string Reader io.Reader Writer io.Writer // contains filtered or unexported fields }
FileEdit hold information for editablefile.
func NewFileEdit ¶
NewFileEdit return new FileEdit struct pointer.
type Versions ¶
Versions hold information for program and git and go versions.
var ( // AppVersions is a application version. AppVersions *Versions )
func NewVersions ¶
NewVersions return new Versions struct pointer.
Click to show internal directories.
Click to hide internal directories.