session

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostInfoFrom

func HostInfoFrom(ctx context.Context) (string, bool)

HostInfoFrom extracts a domain name string from the context, if one exists.

func PolicyIncludedFrom

func PolicyIncludedFrom(ctx context.Context) (bool, bool)

func ShouldExploitFrom

func ShouldExploitFrom(ctx context.Context) (bool, bool)

func TraceIDFrom

func TraceIDFrom(ctx context.Context) (string, bool)

TraceIDFrom extracts a trace ID string from the context, if one exists.

func WithHostInfo

func WithHostInfo(ctx context.Context, domain string) context.Context

WithHostInfo returns a new context carrying the given domain name string.

func WithNewTraceID

func WithNewTraceID(ctx context.Context) context.Context

WithNewTraceID ensures a trace ID is present in the context. If one does not exist, it generates a new random trace ID and returns a new context carrying it. If one already exists, it returns the original context unmodified.

func WithPolicyIncluded

func WithPolicyIncluded(ctx context.Context, patternMatched bool) context.Context

func WithShouldExploit

func WithShouldExploit(ctx context.Context, shouldExploit bool) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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