config

package
v0.0.73 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const HttpdConfTemplate = `` /* 3939-byte string literal not displayed */

HttpdConfTemplate is the template string for a httpd.conf file

View Source
const NginxConfTemplate = `` /* 7082-byte string literal not displayed */

NginxConfTemplate is the template string for a nginx.conf file

View Source
const PhpFpmConfTemplate = `` /* 21991-byte string literal not displayed */

PhpFpmConfTemplate is the template string for a php-fpm.conf file

View Source
const PhpIniTemplate = `` /* 71458-byte string literal not displayed */

PhpIniTemplate is the template string for a php.ini file

Variables

This section is empty.

Functions

func ProcessTemplateToFile

func ProcessTemplateToFile(templateBody string, outputPath string, data interface{}) error

ProcessTemplateToFile writes out a specific template to the given file name

Types

type HttpdConfig

type HttpdConfig struct {
	ServerAdmin  string
	AppRoot      string
	WebDirectory string
	FpmSocket    string
}

HttpdConfig supplies values for templated httpd.conf

type NginxConfig added in v0.0.6

type NginxConfig struct {
	AppRoot      string
	WebDirectory string
	FpmSocket    string
}

NginxConfig supplies values for templated nginx.conf

type PhpFpmConfig

type PhpFpmConfig struct {
	PhpHome string
	PhpAPI  string
	Include string
	Listen  string
}

PhpFpmConfig supplies values for templated php-fpm.conf

type PhpIniConfig

type PhpIniConfig struct {
	AppRoot        string
	LibDirectory   string
	PhpHome        string
	PhpAPI         string
	Extensions     []string
	ZendExtensions []string
}

PhpIniConfig supplies values for templated php.ini

Jump to

Keyboard shortcuts

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