infra

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailingConnectClient

func FailingConnectClient(req *http.Request) (*http.Response, error)

func NewAgent

func NewAgent(dataClient backendhttp.Client, configurator ...func(*config.Config)) *agent.Agent

Create a new agent for testing.

func NewAgentFromConfig

func NewAgentFromConfig(cfg *config.Config) *agent.Agent

func NewAgentWithConnectClient

func NewAgentWithConnectClient(connectClient *http.Client, dataClient backendhttp.Client, configurator ...func(*config.Config)) *agent.Agent

NewAgentWithConnectClient create a new agent for testing with a provided connect-client.

func NewAgentWithConnectClientAndConfig

func NewAgentWithConnectClientAndConfig(connectClient *http.Client, dataClient backendhttp.Client, cfg *config.Config, configurator ...func(*config.Config)) *agent.Agent

func NewSuccessConnectHttpClient

func NewSuccessConnectHttpClient() *http.Client

func SuccessConnectClient

func SuccessConnectClient(req *http.Request) (*http.Response, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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