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 ¶
View Source
var RequiredContainerIDErr = errors.New("container ID of the agent is required")
RequiredContainerIDErr is the error to return when container ID is not provided.
View Source
var RequiredPIDErr = errors.New("process PID of the agent is required")
RequiredPIDErr is the error to return when the process ID is not provided.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
// Notify will send a notification that will be captured by the agent which will run a handler.
Notify(ctx context.Context, message ipc.Message) error
// Return the identification for the notified agent.
GetID() string
}
Client is used to notify a running agent process.
func NewAutoDetectedClient ¶
NewAutoDetectedClient will try to detect the NRIA instance type and return a notification client for it.
Click to show internal directories.
Click to hide internal directories.