Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitAlertConfig ¶
func InitAlertConfig()
func SendSlackMessage ¶
func SendSlackMessage(message string)
Types ¶
type AlertConfig ¶
type AlertConfig struct { Type string Webhook string LowGasThresholds []*ChainIdThreshold `mapstructure:"low_gas_thresholds"` }
func GetConfig ¶
func GetConfig() *AlertConfig
func (*AlertConfig) GetLowGasThreshold ¶
func (a *AlertConfig) GetLowGasThreshold(chid uint64) (*big.Int, bool)
type ChainIdThreshold ¶
type SlackRequest ¶
type SlackRequest struct {
Text string `json:"text"`
}
Click to show internal directories.
Click to hide internal directories.