Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultWebHookPath ..
DefaultWebHookPath = "webhooks/webhook.example.yaml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailabilityHooks ¶
type AvailabilityHooks struct {
OnDroppedBelowThreshold string `yaml:"on-dropped-below-threshold"`
}
AvailabilityHooks ..
type BadBlockHooks ¶
type BadBlockHooks struct {
OnCannotCommit string `yaml:"on-cannot-commit-block"`
}
BadBlockHooks ..
type DoubleSignWebHooks ¶
type DoubleSignWebHooks struct {
OnNoticeDoubleSign string `yaml:"on-notice-double-sign"`
}
DoubleSignWebHooks ..
type Hooks ¶
type Hooks struct { Slashing *DoubleSignWebHooks `yaml:"slashing-hooks"` Availability *AvailabilityHooks `yaml:"availability-hooks"` ProtocolIssues *BadBlockHooks `yaml:"protocol-hooks"` }
Hooks ..
func NewWebHooksFromPath ¶
NewWebHooksFromPath ..
type ReportResult ¶
ReportResult ..
func DoPost ¶
func DoPost(url string, record interface{}) (*ReportResult, error)
DoPost is a fire and forget helper
Click to show internal directories.
Click to hide internal directories.