package
6.9.1
Repository: https://github.com/launchdarkly/ld-relay.git
Documentation: pkg.go.dev

# Functions

Chain combines a series of middleware functions that will be applied in the same order.
CORS is a middleware function that sets the appropriate CORS headers on a browser response (not counting Access-Control-Allow-Methods, which is set by gorilla/mux's CORS middleware based on the route handlers we've defined).
CountBrowserConns is a middleware function that increments the total number of browser connections, and also increments the number of active browser connections until the handler ends.
CountMobileConns is a middleware function that increments the total number of mobile connections, and also increments the number of active mobile connections until the handler ends.
CountServerConns is a middleware function that increments the total number of server-side connections, and also increments the number of active server-side connections until the handler ends.
GetEnvContextInfo returns the EnvContextInfo that is attached to the specified Context (normally obtained from a request as request.Context()).
RequestCount is a middleware function that increments the specified metric for each request.
SelectEnvironmentByAuthorizationKey creates a middleware function that attempts to authenticate the request using the appropriate kind of credential for the basictypes.SDKKind.
Streaming is a middleware function that sets the appropriate headers on a streaming response.
UserFromBase64 decodes a base64-encoded go-server-sdk user.
WithEnvContextInfo returns a new Context with the EnvContextInfo added.

# Structs

EnvContextInfo is data that we attach to the current HTTP request to indicate which environment it is related to.

# Interfaces

RelayEnvironments defines the methods for looking up environments.