Documentation ¶
Overview ¶
Copyright 2020 New Relic Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0
Index ¶
- type MockAgent
- func (m *MockAgent) ActiveEntitiesChannel() chan string
- func (m *MockAgent) AddReconnecting(agent.Plugin)
- func (self *MockAgent) CacheServicePids(source string, pidMap map[int]string)
- func (self *MockAgent) CloudDetector() *cloud.Detector
- func (self *MockAgent) Config() *config.Config
- func (m *MockAgent) Context() context.Context
- func (self *MockAgent) EntityKey() string
- func (self *MockAgent) GetData(c *C) (output agent.PluginOutput)
- func (self *MockAgent) GetServiceForPid(pid int) (service string, ok bool)
- func (m *MockAgent) HostnameResolver() hostname.Resolver
- func (m *MockAgent) IDLookup() host.IDLookup
- func (m *MockAgent) Identity() entity.Identity
- func (m *MockAgent) Reconnect()
- func (self *MockAgent) SendData(data agent.PluginOutput)
- func (self *MockAgent) SendEvent(event sample.Event, entityKey entity.Key)
- func (self *MockAgent) Unregister(id ids.PluginID)
- func (self *MockAgent) Version() string
- func (self *MockAgent) WithConfig(cfg *config.Config) *MockAgent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAgent ¶
type MockAgent struct {
// contains filtered or unexported fields
}
func NewMockAgent ¶
func NewMockAgent() *MockAgent
func (*MockAgent) ActiveEntitiesChannel ¶
func (*MockAgent) AddReconnecting ¶
func (*MockAgent) CacheServicePids ¶
func (*MockAgent) CloudDetector ¶
func (*MockAgent) GetData ¶
func (self *MockAgent) GetData(c *C) (output agent.PluginOutput)
func (*MockAgent) GetServiceForPid ¶
func (*MockAgent) HostnameResolver ¶
func (*MockAgent) SendData ¶
func (self *MockAgent) SendData(data agent.PluginOutput)
func (*MockAgent) Unregister ¶
Click to show internal directories.
Click to hide internal directories.