Documentation
¶
Overview ¶
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMsgInvalidArgs = "invalid arguments for command" ErrOSNotSupported = errors.New("OS not supported") )
Errors
Functions ¶
func NewArgsErr ¶
NewArgsErr creates an invalid arguments error wrapping the reason
Types ¶
type CmdHandleF ¶
CmdHandleF command channel request handler function.
type CmdHandler ¶
type CmdHandler struct { CmdName string // name of the command request that should be handled Handle CmdHandleF // handling function to be invoked }
CmdHandler handler for the a given command-channel command request.
func NewCmdHandler ¶
func NewCmdHandler(cmdName string, handle CmdHandleF) *CmdHandler
NewCmdHandler creates a command channel handler.
type InitialCmdResponse ¶
InitialCmdResponse initial command channel response.
Click to show internal directories.
Click to hide internal directories.