Documentation ¶
Index ¶
Constants ¶
View Source
const ( Version = "1.0.0-rc1" // AppName is used in metrics AppName = "samaritan" )
Basic consts
View Source
const ( DefaultDataPath = "/data/run/" + AppName + "/" DefaultPidFileName = AppName + ".pid" // DefaultParentTerminateTime is the default time that child // will wait before terminate the parent DefaultParentTerminateTime = time.Minute * 6 DefaultConfigFile = "/etc/" + AppName + ".yaml" )
Default values
View Source
const ( // ParentPidEnv is the name of environment variable contains PID of parent Sam // instance ParentPidEnv = "__Samaritan_Parent__" // ParentTerminateTimeEnv is the name of environment variable contains the time // that child will wait before terminate the parent during a hot restart ParentTerminateTimeEnv = "__Samaritan_Parent_Terminate_Time__" )
Variables ¶
View Source
var ( // Build contains build information, it's fill in makefile // e.g. 2016-05-10_15:17:04@6eaa797bd159d7e82ca247de9eda3d53029cebe3 Build string )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.