Documentation ¶
Index ¶
Constants ¶
View Source
const ( IPV4 string = "tcp4" IPV6 string = "tcp6" )
Variables ¶
View Source
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 IsolateProcess ¶
IsolateProcess change gpid for the process to avoid bypassing signals to php processes.
func SetChecker ¶
func SetChecker(_ []byte)
Types ¶
type ContextKey ¶
type ContextKey struct {
// contains filtered or unexported fields
}
func (*ContextKey) String ¶
func (ck *ContextKey) String() string
Click to show internal directories.
Click to hide internal directories.