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

# Packages

Package testclient contains test helpers that reference the SDK-related packages.
Package testenv contains test helpers that reference the relayenv package.

# Functions

AddQueryParam is a shortcut for concatenating a query string to a URL that may or may not have one.
No description provided by the author
No description provided by the author
AssertJSONPathMatch checks for a value within a nested JSON data structure.
No description provided by the author
No description provided by the author
No description provided by the author
BuildRequest is a simple shortcut for creating a request that may or may not have a body.
BuildRequestWithAuth creates a GET request with an Authorization header.
CallHandlerAndAwaitStatus calls an HTTP handler directly with a request and then blocks until the handler has started a response, returning the response status (and cancelling the request).
No description provided by the author
No description provided by the author
No description provided by the author
DoRequest is a shortcut for executing an endpoint handler against a request and getting the response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetAvailablePort finds an available port (by creating and then immediately closing a listener) and returns the port number.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
MakeSDKStreamEndpointRequest creates a request to one of the streaming SDK endpoints.
No description provided by the author
No description provided by the author
No description provided by the author
NewTestMetricsExporter creates a TestMetricsExporter.
No description provided by the author
ToBase64 is a shortcut for base64 encoding.
No description provided by the author
No description provided by the author
WithListenerForAnyPort creates a listener for an available port, calls the function with the listener and the port number, and then closes the listener.
WithStreamRequest makes a request that should receive an SSE stream, and calls the given code with a channel that will read from that stream.
No description provided by the author

# Constants

No description provided by the author
The "malformed" values contain an unsupported authorization scheme.
ReportMode means a client-side request should be done with REPORT rather than GET.
SimpleUserJSON is a basic user.
No description provided by the author
No description provided by the author
The "undefined" values are well-formed, but do not match any environment in our test data.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

NoOpSDKBigSegmentStore is a stub implementation of the SDK's BigSegmentStore (not the type of the same name that Relay uses internally).
No description provided by the author
StreamRecorder is an extension of ResponseRecorder to handle streaming content.
No description provided by the author
No description provided by the author
TestMetricsExporter accumulates OpenCensus metrics for tests.
TestMetricsRow is a simplified version of an OpenCensus view row.
No description provided by the author

# Type aliases

SDKRequestVariant represents distinctions between endpoints that are not described in full by basictypes.SDKKind or basictypes.StreamKind.
TestMetricsData is a map of OpenCensus view names to row data.