apachectl

package
v0.0.0-...-ea924cd Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApacheCtl

type ApacheCtl struct {
	// contains filtered or unexported fields
}

func GetApacheCtl

func GetApacheCtl() (ApacheCtl, error)

func (ApacheCtl) GetVersion

func (a ApacheCtl) GetVersion() (string, error)

GetVersion returns apache version

func (ApacheCtl) ParseDefines

func (a ApacheCtl) ParseDefines() (map[string]string, error)

ParseDefines returns a map of the defined variables.

func (ApacheCtl) ParseIncludes

func (a ApacheCtl) ParseIncludes() ([]string, error)

ParseIncludes returns Include directives from httpd process and returns a list of their values.

func (ApacheCtl) ParseModules

func (a ApacheCtl) ParseModules() ([]string, error)

ParseModules return the list of loaded module names.

func (ApacheCtl) Restart

func (a ApacheCtl) Restart() error

Restart restarts apache webserver

func (ApacheCtl) TestConfiguration

func (a ApacheCtl) TestConfiguration() error

TestConfiguration checks the syntax of apache configuration files

Jump to

Keyboard shortcuts

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