Versions in this module Expand all Collapse all v1 v1.0.12 Apr 23, 2024 v1.0.11 Apr 1, 2024 Changes in this version + func HttpPorts(ctx context.Context) []int + func HttpServers(ctx context.Context) (int, map[string][]int) + func Port(ctx context.Context) int + func Ports(contexts []context.Context) []int + func StreamServers(ctx context.Context) []int + type CompletedManagerConfig struct + func (cc *CompletedManagerConfig) NewNginxConfigManager() (NginxConfigManager, error) + type HttpInfo struct + PortCount []int + ServerCount int + ServerPortCount map[string][]int + type ManagerConfig struct + BackupCycleDays int + BackupDir string + BackupPrefix string + BackupRetentionDays int + BackupTimeZone *time.Location + NginxBinFilePath string + NginxHome string + NginxMainConfigAbsPath string + RegularlyTaskCycleDelay time.Duration + func (c *ManagerConfig) Complete() (*CompletedManagerConfig, error) + type NginxConfig interface + Dump func() map[string]*bytes.Buffer + Json func() []byte + Main func() local.MainContext + TextLines func() []string + UpdateFromJsonBytes func(data []byte) error + UpdatedTimestamp func() time.Time + func NewNginxConfigFromFS(filepath string) (NginxConfig, error) + func NewNginxConfigFromJsonBytes(data []byte) (NginxConfig, error) + type NginxConfigManager interface + NginxConfig func() NginxConfig + ServerStatus func() v1.State + ServerVersion func() string + Start func() error + Stop func(timeout time.Duration) error + type Statistician interface + HttpInfo func() HttpInfo + Statistics func() *v1.Statistics + StreamInfo func() StreamInfo + func NewStatistician(c NginxConfig) Statistician + type StreamInfo struct + PortCount []int