php

package
v0.0.0-beta6 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NamePhpIni  = func(v int) string { return fmt.Sprintf("conf/php.ini@%d", v) }
	NameWwwConf = func(v int) string { return fmt.Sprintf("conf/www.conf@%d", v) }
)
View Source
var (
	DistPhpIni = func(v int) string {
		if v < 70 {
			return fmt.Sprintf("/opt/remi/php%d/root/etc/php.ini", v)
		}
		return fmt.Sprintf("/etc/opt/remi/php%d/php.ini", v)
	}
	DistWwwConf = func(v int) string {
		if v < 70 {
			return fmt.Sprintf("/opt/remi/php%d/root/etc/php-fpm.d/www.conf", v)
		}
		return fmt.Sprintf("/etc/opt/remi/php%d/php-fpm.d/www.conf", v)
	}
)
View Source
var (
	ConfBindPhpIni  = func(v int) *appconf.ConfBind { return appconf.NewConfBind(&fs, NamePhpIni(v), DistPhpIni(v), perm) }
	ConfBindWwwConf = func(v int) *appconf.ConfBind { return appconf.NewConfBind(&fs, NameWwwConf(v), DistWwwConf(v), perm) }
)
View Source
var ConfBinds = func(v int) []*appconf.ConfBind {
	return []*appconf.ConfBind{
		ConfBindPhpIni(v),
		ConfBindWwwConf(v),
	}
}

Functions

func ConfBindMap

func ConfBindMap(v int, optPhpIni OptPhpIni, optWwwConf OptWwwConf) map[string]any

Types

type OptPhpIni

type OptPhpIni struct{}

type OptWwwConf

type OptWwwConf struct{}

Jump to

Keyboard shortcuts

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