Documentation ¶
Index ¶
- Constants
- func DirStagingToFinal(s string) string
- func HaproxyBalanceAlgorithm(scheduler string) (balance string, err error)
- func HaproxyConfigHttpCheck(uri, domain string) string
- func HaproxyConfigHttpCheckExpect(s string) string
- func KeepalivedConfHexQuote(s string) string
- func KeepalivedConfQuoteScriptArgs(args []string) string
- func ReadPidFile(pidFile string) *os.Process
- func WritePidFile(pid int, pidFile string) error
- type ConfigDirManager
- type DirFunc
- type HaproxySslPolicyParams
Constants ¶
View Source
const ( FileModeDir = os.FileMode(0755) FileModeFile = os.FileMode(0644) FileModeDirSensitive = os.FileMode(0700) FileModeFileSensitive = os.FileMode(0600) )
View Source
const (
ConfigDirMode = os.FileMode(0755)
)
View Source
const HaproxyCfgExt = "cfg"
Variables ¶
This section is empty.
Functions ¶
func DirStagingToFinal ¶
func HaproxyBalanceAlgorithm ¶
func HaproxyConfigHttpCheck ¶
func KeepalivedConfHexQuote ¶
func ReadPidFile ¶
func WritePidFile ¶
Types ¶
type ConfigDirManager ¶
type ConfigDirManager struct {
// contains filtered or unexported fields
}
func NewConfigDirManager ¶
func NewConfigDirManager(baseDir string) *ConfigDirManager
TODO
- set active
func (*ConfigDirManager) MostRecentSubdir ¶
func (m *ConfigDirManager) MostRecentSubdir() string
func (*ConfigDirManager) NewDir ¶
func (m *ConfigDirManager) NewDir(f DirFunc) (finalDir string, err error)
call f() inside 20180830.104050.333.lbcorpus.json.staging move to final name 20180830.104050.333.lbcorpus.json
func (*ConfigDirManager) Prune ¶
func (m *ConfigDirManager) Prune(nRetain int) error
type HaproxySslPolicyParams ¶
func HaproxySslPolicy ¶
func HaproxySslPolicy(policy string) *HaproxySslPolicyParams
TODO restrict ciphers as noted in https://help.aliyun.com/document_detail/90740.html
Click to show internal directories.
Click to hide internal directories.