utils

package
v2.3.1-beta.6 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsBytes added in v2.2.1

func AsBytes(s string) []byte

AsBytes returns a slice that refers to the data backing the string s.

func AsString added in v2.2.1

func AsString(b []byte) string

AsString returns a string that refers to the data backing the slice s.

func CreateListener

func CreateListener(address string) (net.Listener, error)

CreateListener

CreateListener crates socket listener based on DSN definition.

func ExecuteFromUser

func ExecuteFromUser(cmd *exec.Cmd, u string) error

ExecuteFromUser may work only if run RR under root user

func IsolateProcess

func IsolateProcess(cmd *exec.Cmd)

IsolateProcess change gpid for the process to avoid bypassing signals to php processes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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