types

package
v1.24.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const FlagPerformanceModeDefault = PerformanceModeEmpty
View Source
const FlagPerformanceModeName = "performance-mode"

Flag definitions

View Source
const FlagPerformanceModeResetName = "performance-mode-reset"
View Source
const FlagXHProfModeDefault = XHProfModePrepend

TODO: Default should change to XHProfModeXHGUI in DDEV v1.25.0

View Source
const FlagXHProfModeName = "xhprof-mode"

Flag definitions

View Source
const FlagXHProfModeResetName = "xhprof-mode-reset"

Variables

This section is empty.

Functions

func CheckValidPerformanceMode

func CheckValidPerformanceMode(performanceMode string, configType ConfigType) error

CheckValidPerformance checks to see if the given performance mode option is valid and returns an error in case the value is not valid.

func CheckValidXHProfMode added in v1.24.4

func CheckValidXHProfMode(xhprofMode string, configType ConfigType) error

CheckValidXHProfMode checks to see if the given xhprof mode option is valid and returns an error in case the value is not valid.

func FlagPerformanceModeDescription

func FlagPerformanceModeDescription(configType ConfigType) string

func FlagPerformanceModeResetDescription

func FlagPerformanceModeResetDescription(configType ConfigType) string

func FlagXHProfModeDescription added in v1.24.4

func FlagXHProfModeDescription(configType ConfigType) string

func FlagXHProfModeResetDescription added in v1.24.4

func FlagXHProfModeResetDescription(configType ConfigType) string

func IsValidPerformanceMode

func IsValidPerformanceMode(performanceMode string, configType ConfigType) bool

IsValidPerformanceMode checks to see if the given performance mode option is valid.

func IsValidXHProfMode added in v1.24.4

func IsValidXHProfMode(XHProfMode string, configType ConfigType) bool

IsValidXHProfMode checks to see if the given xhprof mode option is valid.

Types

type ConfigType

type ConfigType int
const (
	ConfigTypeGlobal ConfigType = iota
	ConfigTypeProject
)

type PerformanceMode

type PerformanceMode = string
const (
	PerformanceModeEmpty   PerformanceMode = ""
	PerformanceModeGlobal  PerformanceMode = "global"
	PerformanceModeNone    PerformanceMode = "none"
	PerformanceModeMutagen PerformanceMode = "mutagen"
	PerformanceModeNFS     PerformanceMode = "nfs"
)

func GetPerformanceModeDefault

func GetPerformanceModeDefault() PerformanceMode

GetPerformanceModeDefault returns the default performance mode config depending on the OS.

func ValidPerformanceModeOptions

func ValidPerformanceModeOptions(configType ConfigType) []PerformanceMode

ValidPerformanceModeOptions returns a slice of valid performance mode options for the project config or global config if global is true.

type XHProfMode added in v1.24.4

type XHProfMode = string
const (
	XHProfModeEmpty   XHProfMode = ""
	XHProfModePrepend XHProfMode = "prepend"
	XHProfModeXHGui   XHProfMode = "xhgui"
	XHProfModeGlobal  XHProfMode = "global"
)

func ValidXHProfModeOptions added in v1.24.4

func ValidXHProfModeOptions(configType ConfigType) []XHProfMode

ValidXHProfModeOptions returns a slice of valid xhprof mode options for the project config or global config if global is true.

Jump to

Keyboard shortcuts

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