Documentation ¶
Index ¶
Constants ¶
View Source
const (
BoltBlockStoreFileName = "blocks.db"
)
Variables ¶
View Source
var (
Opts = &allOptions{}
)
Functions ¶
func New ¶
func New(obsF Factory, opts ...interface{}) *alphabillApp
New creates a new Alphabill application
func NewKeysConf ¶
func NewKeysConf(conf *baseConfiguration, relativeDir string) *keysConfig
Types ¶
type Factory ¶ added in v0.3.0
type Factory interface { Logger(cfg *logger.LogConfiguration) (*slog.Logger, error) Observability(metrics, traces string) (observability.MeterAndTracer, error) }
type Keys ¶
func GenerateKeys ¶
GenerateKeys generates a new signing and encryption key.
type LoggerFactory ¶ added in v0.3.0
type LoggerFactory func(cfg *logger.LogConfiguration) (*slog.Logger, error)
type Observability ¶ added in v0.3.0
type Observability interface { Tracer(name string, options ...trace.TracerOption) trace.Tracer TracerProvider() trace.TracerProvider Meter(name string, opts ...metric.MeterOption) metric.Meter PrometheusRegisterer() prometheus.Registerer Shutdown() error Logger() *slog.Logger }
Click to show internal directories.
Click to hide internal directories.