client

package
v0.18.10 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNRClient

func CreateNRClient(cfg *config.Config, creds *credentials.Credentials) (*newrelic.NewRelic, *credentials.Profile, error)

CreateNRClient initializes the New Relic client.

func WithClient

func WithClient(f func(c *newrelic.NewRelic))

WithClient returns a New Relic client.

func WithClientAndProfile added in v0.8.11

func WithClientAndProfile(f func(c *newrelic.NewRelic, p *credentials.Profile))

WithClientAndProfile returns a New Relic client and the profile used to initialize it, after environment oveerrides have been applied.

func WithClientAndProfileFrom added in v0.8.11

func WithClientAndProfileFrom(configDir string, f func(c *newrelic.NewRelic, p *credentials.Profile))

WithClientAndProfileFrom returns a New Relic client and default profile used to initialize it, after environment oveerrides have been applied.

func WithClientFrom

func WithClientFrom(configDir string, f func(c *newrelic.NewRelic))

WithClientFrom returns a New Relic client, initialized from configuration in the specified location.

Types

This section is empty.

Jump to

Keyboard shortcuts

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