Back to

Package nginxcmd

Latest Go to latest

The latest major version is .

Published: Apr 16, 2020 | License: LGPL-3.0 | Module:



var (

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

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

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier