Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware(opts ...Option) mux.MiddlewareFunc
Middleware injects a JavaScript snippet that establishes a session with the server.
Types ¶
type Config ¶
type Config struct { Enable bool `json:"enable" usage:"enables session tracking and script injection" default:"true"` Prefix string `json:"prefix" usage:"configure the prefix to use for recording sessions" default:"/_session" hidden:"true"` }
Config encapsulates configuration for the session endpoints.
type Measurements ¶
type Option ¶
type Option func(*opt)
Option provides a way to configure elements of the Middleware.
func Exclusions ¶
Exclusions appends the provided rules to the excludes list. Any path that matches an exclusion will not be measured.
func JavaScriptPath ¶
JavaScriptPath configures the URL for the JS snippet.
type Request ¶
type Request struct { ID string FullName string Data []Measurements }
Click to show internal directories.
Click to hide internal directories.