rainbond: github.com/goodrain/rainbond/gateway/controller/openresty/nginxcmd Index | Files

package nginxcmd

import "github.com/goodrain/rainbond/gateway/controller/openresty/nginxcmd"

Index

Package Files

nginx_cmd.go

Variables

var (

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

func CheckConfig Uses

func CheckConfig() error

CheckConfig check nginx config file

func CreateNginxCommand Uses

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

CreateNginxCommand create nginx command

func ExecNginxCommand Uses

func ExecNginxCommand(args ...string) error

ExecNginxCommand exec nginx command

func PromethesuScrape Uses

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

PromethesuScrape prometheus scrape

func PrometheusCollect Uses

func PrometheusCollect(ch chan<- prometheus.Metric)

PrometheusCollect prometheus collect

func Reload Uses

func Reload() error

Reload reload nginx config

func SetDefaultNginxConf Uses

func SetDefaultNginxConf(path string)

SetDefaultNginxConf set

Package nginxcmd imports 6 packages (graph) and is imported by 3 packages. Updated 2019-10-01. Refresh now. Tools for package owners.