Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFromConfig ¶
func InitFromConfig(ctx context.Context, h *HealthChecker, cfg *Config) (err error)
Types ¶
type Config ¶
type Config struct { // db configs DatabaseUsername string DatabasePassword string DatabaseName string DatabaseHost string DatabaseMaxIdleConns uint64 DatabaseMaxOpenConns uint64 DatabaseMaxConnLifetime uint64 CORSOrigins []string Backoff uint64 HTTPPort uint64 GuardianProverContractAddress string L1RPCUrl string L2RPCUrl string OpenDBFunc func() (db.DB, error) }
func NewConfigFromCliContext ¶
NewConfigFromCliContext creates a new config instance from command line flags.
type HealthChecker ¶
type HealthChecker struct {
// contains filtered or unexported fields
}
func (*HealthChecker) Close ¶
func (h *HealthChecker) Close(ctx context.Context)
func (*HealthChecker) InitFromCli ¶
func (h *HealthChecker) InitFromCli(ctx context.Context, c *cli.Context) error
func (*HealthChecker) Name ¶
func (h *HealthChecker) Name() string
func (*HealthChecker) Start ¶
func (h *HealthChecker) Start() error
Click to show internal directories.
Click to hide internal directories.