Versions in this module Expand all Collapse all v1 v1.0.0 Feb 8, 2023 Changes in this version + const IncidentDedupKeyBlockTimeout + const IncidentDedupKeyRelayError + const KeyTypeAWSMnemonic + const KeyTypeMnemonic + var Logger = logging.MustGetLogger("deputy") + var SdkLogger = &sdkLogger + func GetSecret(secretName, region string) (string, error) + func InitAlert(cfg *AlertConfig) + func InitLogger(config LogConfig) + func PrepareDB(config *Config) (*gorm.DB, error) + func SendPagerDutyAlert(detail string, dedupKey string) + func SendTelegramMessage(msg string) + type AdminConfig struct + ListenAddr string + type AlertConfig struct + BlockUpdateTimeOut int64 + Moniker string + PackageDelayAlertThreshold int64 + PagerDutyAuthToken string + TelegramBotId string + TelegramChatId string + func (cfg *AlertConfig) Validate() + type ChainConfig struct + AFCAWSRegion string + AFCAWSSecretName string + AFCKeyType string + AFCMnemonic string + AFCRpcAddrs []string + ASCChainId uint16 + ASCConfirmNum int64 + ASCCrossChainContractAddress ethcmm.Address + ASCProviders []string + ASCStartHeight int64 + RelayInterval int64 + func (cfg *ChainConfig) Validate() + type Config struct + AdminConfig *AdminConfig + AlertConfig *AlertConfig + ChainConfig *ChainConfig + DBConfig *DBConfig + LogConfig *LogConfig + func GetTestConfig() *Config + func ParseConfigFromFile(filePath string) *Config + func ParseConfigFromJson(content string) *Config + func (cfg *Config) Validate() + type DBConfig struct + DBPath string + Dialect string + func (cfg *DBConfig) Validate() + type LogConfig struct + Compress bool + Filename string + Level string + MaxAgeToRetainLogFilesInDays int + MaxBackupsOfLogFiles int + MaxFileSizeInMB int + UseConsoleLogger bool + UseFileLogger bool + func (cfg *LogConfig) Validate() + type TgAlerter struct + BotId string + ChatId string