repository

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package repository contains variables used throughout the application.

Index

Constants

This section is empty.

Variables

View Source
var (

	//TelegramBotToken is the Telegram bot token.
	TelegramBotToken string
	//BitlyAPIKey is the Bitly API key.
	BitlyAPIKey string
	//ReferralID is the Amazon referral ID.
	ReferralID string
	//AmazonDomain is the Amazon domain for which
	//the ReferralID is valid.
	AmazonDomain string

	//AWSSession is the current AWS session.
	AWSSession *session.Session
	//DynamoDBClient is the client to access DynamoDB.
	DynamoDBClient *dynamodb.DynamoDB
)

Functions

func CreateAWSSession

func CreateAWSSession() (err error)

CreateAWSSession creates an AWS session.

func LoadEnvVariables

func LoadEnvVariables()

LoadEnvVariables loads the environment variables and checks their values. If they're empty, the application will quit.

func StartDynamoDBClient

func StartDynamoDBClient()

StartDynamoDBClient starts the DynamoDB client.

Types

This section is empty.

Jump to

Keyboard shortcuts

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