sharedmain

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MainWithController

func MainWithController(envCtor env.ConfigConstructor,
	cCtor namedControllerConstructor, aCtor namedAdapterConstructor,
)

MainWithController is a shared main tailored to multi-tenant receive-adapters. It performs the following initializations:

  • process environment variables
  • enable leader election / HA
  • set the scope to a single namespace
  • inject the given controller constructor

Types

This section is empty.

Jump to

Keyboard shortcuts

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