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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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