Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventPayload ¶
type EventPayload struct {
RuleID string
Chain string
SourceID string
Height uint64
Hash string
TxHash string
AppID uint64
LogIndex *uint
Args map[string]any
}
EventPayload is the data passed to sinks.
type Sender ¶
type Sender interface {
Send(ctx context.Context, payload EventPayload) error
}
func NewSlackSender ¶
NewSlackSender builds a Slack-compatible webhook sink.
func NewTeamsSender ¶
NewTeamsSender builds a Teams-compatible webhook sink.
Click to show internal directories.
Click to hide internal directories.