aws

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONST_AWS_REGION                  = "ap-south-1"
	CONST_ATHENA_QUERY_SLEEP_DURATION = 2 // in seconds
	CONST_ATHENA_QUERY_SUCCESS        = "SUCCEEDED"
	CONST_ATHENA_QUERY_FAILED         = "FAILED"
	CONST_DATABASE_REWARDS_GATEWAY    = "rewards_gateway"
	CONST_NIL                         = "NIL"
)

Variables

This section is empty.

Functions

func ExecuteAthenaQuery

func ExecuteAthenaQuery(ctx context.Context, query string, campaignId int64) (map[string]string, [][]string, error)

func MapAthenaResponse

func MapAthenaResponse(response *athena.GetQueryResultsOutput) (map[string]string, [][]string)

func PutObjectInBucket

func PutObjectInBucket(data []byte, bucket string, key string) error

func RunAthenaQuery

func RunAthenaQuery(query string, campaignId int64) (*athena.GetQueryResultsOutput, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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