handlers

package
v1.2.1-dev.31 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func InitializeStoreClient

func InitializeStoreClient(
	secretProvider security.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(
	ctx context.Context,
	wg *sync.WaitGroup,
	startupTimer 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(
	ctx 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 Secrets

type Secrets struct {
}

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

func NewSecrets

func NewSecrets() *Secrets

NewDatabase create a new instance of Database

func (*Secrets) BootstrapHandler

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

BootstrapHandler creates the SecretProvider based on configuration.

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,
	startupTimer 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