Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ReportTargetTypeKey = "report.type" ReportHTTPServerKey = "report.http.server" ReportHTTPTokenKey = "report.http.token" ReportAgentAddressKey = "report.agent.address" ReportDataIDKey = "report.bk_data_id" ReportMessageKindKey = "report.message.kind" ReportMessageBodyKey = "report.message.body" ReportEventNameKey = "report.event.name" ReportEventContentKey = "report.event.content" ReportEventTargetKey = "report.event.target" ReportEventTimestampKey = "report.event.timestamp" )
Functions ¶
func CompareAndPrepareArgs ¶
func CompareAndPrepareArgs() error
func RegisterSender ¶
Types ¶
type NewSender ¶
type NewSender func(config ReportConfig) (Sender, error)
type ReportConfig ¶
type Sender ¶
type Sender interface { Send(bkDataID int64, m *message.Message) error SendSync(bkDataID int64, m *message.Message) error }
Sender is a interface of message sender
type SenderFactory ¶
type SenderFactory struct{}
func NewSenderFactory ¶
func NewSenderFactory() *SenderFactory
func (*SenderFactory) NewSender ¶
func (sf *SenderFactory) NewSender(name string, config ReportConfig) (Sender, error)
Click to show internal directories.
Click to hide internal directories.