Documentation
¶
Index ¶
Constants ¶
View Source
const ( ServicePortDefault int = 8080 IrodsPortDefault int = 1247 )
Variables ¶
This section is empty.
Functions ¶
func GetDefaultDataRootDirPath ¶
func GetDefaultDataRootDirPath() string
func GetServiceVersion ¶
func GetServiceVersion() string
GetServiceVersion returns service version in string
func GetVersionJSON ¶
GetVersionJSON returns VersionInfo object in JSON string
Types ¶
type Config ¶
type Config struct { Port int `yaml:"port"` DataRootPath string `yaml:"data_root_path,omitempty"` LogPath string `yaml:"log_path,omitempty"` IrodsHost string `yaml:"irods_host"` IrodsPort int `yaml:"irods_port"` IrodsAdminUsername string `yaml:"irods_admin_username"` IrodsAdminPassword string `yaml:"irods_admin_password"` Foreground bool `yaml:"foreground,omitempty"` Debug bool `yaml:"debug,omitempty"` ChildProcess bool `yaml:"childprocess,omitempty"` }
Config holds the parameters list which can be configured
func NewConfigFromYAML ¶
NewConfigFromYAML creates Config from YAML
func (*Config) CleanWorkDirs ¶
CleanWorkDirs cleans dirs used
func (*Config) GetLogFilePath ¶
GetLogFilePath returns log file path
func (*Config) MakeLogDir ¶
MakeLogDir makes a log dir required
func (*Config) MakeWorkDirs ¶
MakeWorkDirs makes dirs required
type VersionInfo ¶
type VersionInfo struct { ServiceVersion string `json:"serviceVersion"` GitCommit string `json:"gitCommit"` BuildDate string `json:"buildDate"` GoVersion string `json:"goVersion"` Compiler string `json:"compiler"` Platform string `json:"platform"` }
VersionInfo object contains version related info
Click to show internal directories.
Click to hide internal directories.