nginxcmd

package
v5.1.11-release+incomp... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2020 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	//ErrorCheck check config file failure
	ErrorCheck = fmt.Errorf("error check config")
)

Functions

func CheckConfig

func CheckConfig() error

CheckConfig check nginx config file

func CreateNginxCommand

func CreateNginxCommand(args ...string) *exec.Cmd

CreateNginxCommand create nginx command

func ExecNginxCommand

func ExecNginxCommand(args ...string) error

ExecNginxCommand exec nginx command

func PromethesuScrape

func PromethesuScrape(ch chan<- *prometheus.Desc)

PromethesuScrape prometheus scrape

func PrometheusCollect

func PrometheusCollect(ch chan<- prometheus.Metric)

PrometheusCollect prometheus collect

func Reload

func Reload() error

Reload reload nginx config

func SetDefaultNginxConf

func SetDefaultNginxConf(path string)

SetDefaultNginxConf set

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL