handlers

package
v2.0.0-dev.42 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CorePreReleaseVersion = "master"
	CoreDeveloperVersion  = "0.0.0"
	CoreServiceVersionKey = "version"
	VersionMajorIndex     = 0
)

Variables

This section is empty.

Functions

func InitializeStoreClient

func InitializeStoreClient(
	secretProvider bootstrapInterfaces.SecretProvider,
	config *common.ConfigurationStruct,
	startupTimer startup.Timer,
	logger logger.LoggingClient) (interfaces.StoreClient, error)

InitializeStoreClient initializes the database client for Store and Forward. This is not a receiver function so that it can be called directly when configuration has changed and store and forward has been enabled for the first time

Types

type Clients

type Clients struct {
}

Clients contains references to dependencies required by the Clients bootstrap implementation.

func NewClients

func NewClients() *Clients

NewClients create a new instance of Clients

func (*Clients) BootstrapHandler

func (_ *Clients) BootstrapHandler(
	_ context.Context,
	_ *sync.WaitGroup,
	_ startup.Timer,
	dic *di.Container) bool

BootstrapHandler setups all the clients that have be specified in the configuration

type Database

type Database struct {
}

Database contains references to dependencies required by the database bootstrap implementation.

func NewDatabase

func NewDatabase() *Database

NewDatabase create a new instance of Database

func (*Database) BootstrapHandler

func (_ *Database) BootstrapHandler(
	_ context.Context,
	_ *sync.WaitGroup,
	startupTimer startup.Timer,
	dic *di.Container) bool

BootstrapHandler creates the new interfaces.StoreClient use for database access by Store & Forward capability

type Telemetry

type Telemetry struct {
}

Telemetry contains references to dependencies required by the Telemetry bootstrap implementation.

func NewTelemetry

func NewTelemetry() *Telemetry

New Telemetry create a new instance of Telemetry

func (*Telemetry) BootstrapHandler

func (_ *Telemetry) BootstrapHandler(
	ctx context.Context,
	wg *sync.WaitGroup,
	_ startup.Timer,
	dic *di.Container) bool

BootstrapHandler starts the telemetry collection

type VersionValidator

type VersionValidator struct {
	// contains filtered or unexported fields
}

VersionValidator contains references to dependencies required by the Version Validation bootstrap implementation.

func NewVersionValidator

func NewVersionValidator(skip bool, sdkVersion string) *VersionValidator

NewVersionValidator create a new instance of VersionValidator

func (*VersionValidator) BootstrapHandler

func (vv *VersionValidator) BootstrapHandler(
	_ context.Context,
	_ *sync.WaitGroup,
	startupTimer startup.Timer,
	dic *di.Container) bool

BootstrapHandler verifies that Core Services major version matches this SDK's major version

Jump to

Keyboard shortcuts

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