Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalCfgFile string
GlobalCfgFile is the config filename
View Source
var GlobalHome string
GlobalHome is the user HOME
Functions ¶
func DurationAsSecondsString ¶
DurationAsSecondsString returns a string representation of a duration (seconds)
Types ¶
type API ¶
API describes the basic elements to call the API
var GlobalAPI *API
GlobalAPI is the global API instance
type APICall ¶
type APICall struct { Method string Path string Args map[string]string JSONCallback func(io.Reader, http.Header) DestFilePath string DestStream *os.File PrintLogTopic bool // contains filtered or unexported fields }
APICall describes a call to the API
func (*APICall) TimestampShow ¶
TimestampShow allow to override -d / --time flag
type ExitMessage ¶
ExitMessage is displayed during client exit
func GetExitMessage ¶
func GetExitMessage() *ExitMessage
GetExitMessage return a pointer to the global ExitMessage
type RootConfig ¶
RootConfig describes client application config parameters
var GlobalConfig *RootConfig
GlobalConfig is the global RootConfig instance
Click to show internal directories.
Click to hide internal directories.