Documentation ¶
Index ¶
- Constants
- Variables
- 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
- type ContextKey
Constants ¶
const ( IPV4 string = "tcp4" IPV6 string = "tcp6" )
Variables ¶
var ( // OtelTracerNameKey is OpenTelemetry context key OtelTracerNameKey = &ContextKey{name: "tracer_name"} //nolint:gochecknoglobals // PsrContextKey is a context key. It can be used in the http attributes // immutable PsrContextKey = &ContextKey{"psr_attributes"} //nolint:gochecknoglobals )
Functions ¶
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 ¶
Float32Map returns a map of float32 pointers from the values passed in.
func Float32Slice ¶
Float32Slice returns a slice of float32 pointers from the values passed in.
func Float64Map ¶
Float64Map returns a map of float64 pointers from the values passed in.
func Float64Slice ¶
Float64Slice returns a slice of float64 pointers from the values passed in.
func Int16Slice ¶
Int16Slice returns a slice of int16 pointers from the values passed in.
func Int32Slice ¶
Int32Slice returns a slice of int32 pointers from the values passed in.
func Int64Slice ¶
Int64Slice returns a slice of int64 pointers from the values passed in.
func IsolateProcess ¶
IsolateProcess change gpid for the process to avoid bypassing signals to php processes.
func SetChecker ¶
func SetChecker(_ []byte)
func StringSlice ¶
StringSlice returns a slice of string pointers from the values passed in.
func Uint16Slice ¶
Uint16Slice returns a slice of uint16 pointers from the values passed in.
func Uint32Slice ¶
Uint32Slice returns a slice of uint32 pointers from the values passed in.
func Uint64Slice ¶
Uint64Slice returns a slice of uint64 pointers from the values passed in.
func Uint8Slice ¶
Uint8Slice returns a slice of uint8 pointers from the values passed in.
Types ¶
type ContextKey ¶ added in v2.13.3
type ContextKey struct {
// contains filtered or unexported fields
}
func (*ContextKey) String ¶ added in v2.13.3
func (ck *ContextKey) String() string