Documentation ¶
Index ¶
- Variables
- func NewPlugin() (*pkgplugin.Plugin, error)
- func NewPluginVersion(name string, version string, commitID string) (*pkgplugin.Plugin, error)
- func NewReceiver(tid tenant.Id, plugin string, name string, config interface{}, ...) (receiver.Receiver, error)
- func NewSender(tid tenant.Id, plugin string, name string, config interface{}, ...) (sender.Sender, error)
- type Receiver
- func (r *Receiver) Config() interface{}
- func (r *Receiver) EventErrorCount() int
- func (r *Receiver) EventErrorVelocity() int
- func (r *Receiver) EventSuccessCount() int
- func (r *Receiver) EventSuccessVelocity() int
- func (r *Receiver) EventTs() int64
- func (r *Receiver) Hash() string
- func (r *Receiver) LogSuccess()
- func (r *Receiver) Name() string
- func (r *Receiver) Plugin() string
- func (r *Receiver) Receive(next receiver.NextFn) error
- func (r *Receiver) StopReceiving(ctx context.Context) error
- func (r *Receiver) Tenant() tenant.Id
- func (r *Receiver) Trigger(e event.Event)
- type ReceiverConfig
- type Sender
- func (r *Sender) Config() interface{}
- func (s *Sender) EventErrorCount() int
- func (s *Sender) EventErrorVelocity() int
- func (s *Sender) EventSuccessCount() int
- func (s *Sender) EventSuccessVelocity() int
- func (s *Sender) EventTs() int64
- func (s *Sender) Hash() string
- func (s *Sender) Name() string
- func (s *Sender) Plugin() string
- func (s *Sender) Send(event event.Event)
- func (s *Sender) StopSending(ctx context.Context)
- func (s *Sender) Tenant() tenant.Id
- func (s *Sender) Unwrap() sender.Sender
- type SenderConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "discord" Version = "v0.0.0" CommitID = "" )
View Source
var DefaultReceiverConfig = ReceiverConfig{ BotToken: "", UseShardMonitor: pointer.Bool(false), }
Functions ¶
func NewPluginVersion ¶
func NewReceiver ¶
Types ¶
type Receiver ¶
func (*Receiver) EventErrorCount ¶ added in v1.1.2
func (*Receiver) EventErrorVelocity ¶ added in v1.1.2
func (*Receiver) EventSuccessCount ¶ added in v1.1.2
func (*Receiver) EventSuccessVelocity ¶ added in v1.1.2
func (*Receiver) LogSuccess ¶ added in v1.1.2
func (r *Receiver) LogSuccess()
type ReceiverConfig ¶
type ReceiverConfig struct { BotToken string `json:"botToken"` UseShardMonitor *bool `json:"useShardMonitor,omitempty"` }
func (*ReceiverConfig) Validate ¶
func (rc *ReceiverConfig) Validate() error
Validate returns an error upon validation failure
func (*ReceiverConfig) WithDefaults ¶
func (rc *ReceiverConfig) WithDefaults() ReceiverConfig
WithDefaults returns a new config object that has all of the unset (nil) values filled in.
type Sender ¶
func (*Sender) EventErrorCount ¶ added in v1.1.2
func (*Sender) EventErrorVelocity ¶ added in v1.1.2
func (*Sender) EventSuccessCount ¶ added in v1.1.2
func (*Sender) EventSuccessVelocity ¶ added in v1.1.2
func (*Sender) StopSending ¶
type SenderConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.