Documentation ¶
Index ¶
- Constants
- func AsBytes(s string) []byte
- func AsString(b []byte) string
- func Bool(v bool) *bool
- func BoolMap(vs map[string]bool) map[string]*bool
- func BoolSlice(vs []bool) []*bool
- func Byte(v byte) *byte
- func ByteMap(vs map[string]byte) map[string]*byte
- func ByteSlice(vs []byte) []*byte
- func CreateListener(address string) (net.Listener, error)
- func ExecuteFromUser(cmd *exec.Cmd, u string) error
- func Float32(v float32) *float32
- func Float32Map(vs map[string]float32) map[string]*float32
- func Float32Slice(vs []float32) []*float32
- func Float64(v float64) *float64
- func Float64Map(vs map[string]float64) map[string]*float64
- func Float64Slice(vs []float64) []*float64
- func Int(v int) *int
- func Int16(v int16) *int16
- func Int16Map(vs map[string]int16) map[string]*int16
- func Int16Slice(vs []int16) []*int16
- func Int32(v int32) *int32
- func Int32Map(vs map[string]int32) map[string]*int32
- func Int32Slice(vs []int32) []*int32
- func Int64(v int64) *int64
- func Int64Map(vs map[string]int64) map[string]*int64
- func Int64Slice(vs []int64) []*int64
- func Int8(v int8) *int8
- func Int8Map(vs map[string]int8) map[string]*int8
- func Int8Slice(vs []int8) []*int8
- func IntMap(vs map[string]int) map[string]*int
- func IntSlice(vs []int) []*int
- func IsolateProcess(cmd *exec.Cmd)
- func SetChecker(_ []byte)
- func String(v string) *string
- func StringMap(vs map[string]string) map[string]*string
- func StringSlice(vs []string) []*string
- func Time(v time.Time) *time.Time
- func TimeMap(vs map[string]time.Time) map[string]*time.Time
- func TimeSlice(vs []time.Time) []*time.Time
- func Uint(v uint) *uint
- func Uint16(v uint16) *uint16
- func Uint16Map(vs map[string]uint16) map[string]*uint16
- func Uint16Slice(vs []uint16) []*uint16
- func Uint32(v uint32) *uint32
- func Uint32Map(vs map[string]uint32) map[string]*uint32
- func Uint32Slice(vs []uint32) []*uint32
- func Uint64(v uint64) *uint64
- func Uint64Map(vs map[string]uint64) map[string]*uint64
- func Uint64Slice(vs []uint64) []*uint64
- func Uint8(v uint8) *uint8
- func Uint8Map(vs map[string]uint8) map[string]*uint8
- func Uint8Slice(vs []uint8) []*uint8
- func UintMap(vs map[string]uint) map[string]*uint
- func UintSlice(vs []uint) []*uint
Constants ¶
const ( IPV4 string = "tcp4" IPV6 string = "tcp6" )
Variables ¶
This section is empty.
Functions ¶
func AsBytes ¶ added in v2.2.1
AsBytes returns a slice that refers to the data backing the string s.
func AsString ¶ added in v2.2.1
AsString returns a string that refers to the data backing the slice s.
func BoolSlice ¶ added in v2.4.0
BoolSlice returns a slice of bool pointers from the values passed in.
func ByteSlice ¶ added in v2.4.0
ByteSlice returns a slice of byte pointers from the values passed in.
func CreateListener ¶
CreateListener
SO_REUSEPORT. This option allows linear scaling server performance on multi-CPU servers. See https://www.nginx.com/blog/socket-sharding-nginx-release-1-9-1/ for details.
TCP_DEFER_ACCEPT. This option expects the server reads from the accepted connection before writing to them.
TCP_FASTOPEN. See https://lwn.net/Articles/508865/ for details.
CreateListener crates socket listener based on DSN definition.
func ExecuteFromUser ¶
ExecuteFromUser may work only if run RR under root user
func Float32Map ¶ added in v2.4.0
Float32Map returns a map of float32 pointers from the values passed in.
func Float32Slice ¶ added in v2.4.0
Float32Slice returns a slice of float32 pointers from the values passed in.
func Float64Map ¶ added in v2.4.0
Float64Map returns a map of float64 pointers from the values passed in.
func Float64Slice ¶ added in v2.4.0
Float64Slice returns a slice of float64 pointers from the values passed in.
func Int16Slice ¶ added in v2.4.0
Int16Slice returns a slice of int16 pointers from the values passed in.
func Int32Slice ¶ added in v2.4.0
Int32Slice returns a slice of int32 pointers from the values passed in.
func Int64Slice ¶ added in v2.4.0
Int64Slice returns a slice of int64 pointers from the values passed in.
func Int8Slice ¶ added in v2.4.0
Int8Slice returns a slice of int8 pointers from the values passed in.
func IsolateProcess ¶
IsolateProcess change gpid for the process to avoid bypassing signals to php processes.
func SetChecker ¶ added in v2.7.0
func SetChecker(_ []byte)
func StringMap ¶ added in v2.4.0
StringMap returns a map of string pointers from the values passed in.
func StringSlice ¶ added in v2.4.0
StringSlice returns a slice of string pointers from the values passed in.
func TimeMap ¶ added in v2.4.0
TimeMap returns a map of time.Time pointers from the values passed in.
func TimeSlice ¶ added in v2.4.0
TimeSlice returns a slice of time.Time pointers from the values passed in.
func Uint16Map ¶ added in v2.4.0
Uint16Map returns a map of uint16 pointers from the values passed in.
func Uint16Slice ¶ added in v2.4.0
Uint16Slice returns a slice of uint16 pointers from the values passed in.
func Uint32Map ¶ added in v2.4.0
Uint32Map returns a map of uint32 pointers from the values passed in.
func Uint32Slice ¶ added in v2.4.0
Uint32Slice returns a slice of uint32 pointers from the values passed in.
func Uint64Map ¶ added in v2.4.0
Uint64Map returns a map of uint64 pointers from the values passed in.
func Uint64Slice ¶ added in v2.4.0
Uint64Slice returns a slice of uint64 pointers from the values passed in.
func Uint8Slice ¶ added in v2.4.0
Uint8Slice returns a slice of uint8 pointers from the values passed in.
Types ¶
This section is empty.