app

package
v0.0.0-...-80ff8fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App[C any] interface {
	Name() string
	Setup(ab Builder, config C, logger log.Logger)
	Start(context.Context) error
	Stop()
}

type Builder

type Builder interface {
	AppName() string
	BuildApp(log.Logger) *baseapp.BaseApp
	RegisterJob(job.Basic)
	RegisterDB(db ethdb.KeyValueStore)
	RegisterHTTPHandler(handler *server.Handler) error
	RegisterPrometheusTelemetry() error
}

Builder is a builder for an app. It follows a basic factory pattern.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL