Documentation ¶
Index ¶
Constants ¶
View Source
const ( //DefaultConfigFile default config filename DefaultConfigFile = "config.yml" //DataDir the dir where the config and data is DataDir = "./data/" )
View Source
const ( //HeaderSubsID subscription for ping HeaderSubsID = "W_S_SubsID" //HeaderSource the sourceID of the incoming hook HeaderSource = "W_S_Source" //HeaderReceived the unix time when the hook was received HeaderReceived = "W_S_Source" )
View Source
const DefaultMaxPayloadSize = uint(150)
DefaultMaxPayloadSize the default max payload size
View Source
const (
//EPPingClient endpoint for pinging the client
EPPingClient = "ping"
)
Variables ¶
View Source
var (
LogLevels = []string{
"debug",
"info",
"warning",
"error",
}
)
LogLevels
View Source
var ModeToString = map[uint8]string{
0: "custom",
1: "gitlab",
2: "docker",
3: "github",
}
ModeToString mode to string
View Source
var Modes = map[string]uint8{
"github": 3, "gitlab": 1, "docker": 2, "script": 0,
}
Modes the available actions
View Source
var StrToMode = map[string]uint8{
"custom": 0,
"gitlab": 1,
"docker": 2,
"github": 3,
}
StrToMode string to mode
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.