nginxcmd

package
v0.0.0-...-a3a5c94 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT 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