serviceContainer

package
v1.0.67 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

type Core interface {
	Indexer() indexer.Indexer
	TPSBenchmark() statistics.TPSBenchmark
	IsInterfaceNil() bool
}

Core interface will abstract all the subpackage functionalities and will

provide access to it's members where needed

func NewServiceContainer

func NewServiceContainer(opts ...Option) (Core, error)

NewServiceContainer creates a new serviceContainer responsible in

providing access to all injected core features

type Option

type Option func(container *serviceContainer) error

Option represents a functional configuration parameter that

can operate over the serviceContainer struct

func WithIndexer

func WithIndexer(indexer indexer.Indexer) Option

WithIndexer sets up the database indexer for the core serviceContainer

func WithTPSBenchmark

func WithTPSBenchmark(tpsBenchmark statistics.TPSBenchmark) Option

WithTPSBenchmark sets up the tpsBenchmark object for the core serviceContainer

Jump to

Keyboard shortcuts

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