init

package
v0.0.0-...-4d82e29 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: MIT Imports: 7 Imported by: 1

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"

	// DefaultStage is the default run-time environment, typically one of: dev, test, staging or prod
	DefaultStage = "dev"
)
View Source
const (
	// DefaultAWSRegion is the region to use when the AWS_REGION environment variable is not set
	DefaultAWSRegion = "us-east-1"
)

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