Documentation
¶
Index ¶
- Constants
- type ControllerImpl
- func (c *ControllerImpl) Connect() bool
- func (c *ControllerImpl) Disable(disconnect bool)
- func (c *ControllerImpl) Disconnect()
- func (c *ControllerImpl) Enable()
- func (c *ControllerImpl) GetAppRunId() string
- func (c *ControllerImpl) GetConfig() ds.Config
- func (c *ControllerImpl) IsConnected() bool
- func (c *ControllerImpl) IsForceDisabled() bool
- func (c *ControllerImpl) SendPacket(pk *ds.PacketType) (bool, error)
- func (c *ControllerImpl) Shutdown()
Constants ¶
View Source
const ConnPollTime = 1 * time.Second
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControllerImpl ¶
type ControllerImpl struct {
Lock sync.Mutex // lock for this struct
AppInfo ds.AppInfo // combined application information
TransportErrors int64 // count of transport errors
TransportPacketsSent int64 // count of packets sent
OutrigConnected bool // whether outrig is connected
OutrigForceDisabled bool // whether outrig is force disabled
Collectors map[string]collector.Collector // map of collectors by name
// contains filtered or unexported fields
}
func MakeController ¶
func MakeController(config ds.Config) (*ControllerImpl, error)
func (*ControllerImpl) Connect ¶
func (c *ControllerImpl) Connect() bool
func (*ControllerImpl) Disable ¶
func (c *ControllerImpl) Disable(disconnect bool)
func (*ControllerImpl) Disconnect ¶
func (c *ControllerImpl) Disconnect()
func (*ControllerImpl) Enable ¶
func (c *ControllerImpl) Enable()
func (*ControllerImpl) GetAppRunId ¶
func (c *ControllerImpl) GetAppRunId() string
func (*ControllerImpl) GetConfig ¶
func (c *ControllerImpl) GetConfig() ds.Config
func (*ControllerImpl) IsConnected ¶
func (c *ControllerImpl) IsConnected() bool
func (*ControllerImpl) IsForceDisabled ¶
func (c *ControllerImpl) IsForceDisabled() bool
func (*ControllerImpl) SendPacket ¶
func (c *ControllerImpl) SendPacket(pk *ds.PacketType) (bool, error)
func (*ControllerImpl) Shutdown ¶
func (c *ControllerImpl) Shutdown()
Click to show internal directories.
Click to hide internal directories.