init

package
v0.0.0-...-fc9dd9a Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName is the name of the service - this is used in logs and as a environment prefix
	ServiceName = "CLA_SERVICE"
)

Variables

This section is empty.

Functions

func AWSInit

func AWSInit()

AWSInit initialization logic for the AWS resources

func CommonInit

func CommonInit()

CommonInit initializes the common properties

func ConfigVariable

func ConfigVariable()

ConfigVariable loads all the SSM values based on stage.

func GetAWSCloudWatchService

func GetAWSCloudWatchService() *cloudwatch.CloudWatch

GetAWSCloudWatchService returns the CloudWatch service client

func GetAWSSession

func GetAWSSession() (*session.Session, error)

GetAWSSession returns an AWS session based on the region and credentials

func GetConfig

func GetConfig() config.Config

GetConfig returns the configuration SSM based on stage, e.g. dev, test, stage or prod

func GetProperty

func GetProperty(property string) string

GetProperty is a common routine to bind and return the specified environment variable

func GetStage

func GetStage() string

GetStage returns the deployment stage, e.g. dev, test, stage or prod

func Init

func Init()

Init initialization logic for all the handlers

Types

This section is empty.

Jump to

Keyboard shortcuts

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