app

package
v0.0.0-...-0077085 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 11 Imported by: ? modules, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func New

func New(pool repository.RedisPooler, sns snsiface.SNSAPI, snsTopicArn string) *App

func (*App) Handler

type Config

type Config struct {
	AWSEndpoint        string `envvar:"AWS_ENDPOINT" default:""`
	AWSRegion          string `envvar:"AWS_REGION"`
	AWSAccessKeyID     string `envvar:"AWS_ACCESS_KEY_ID"`
	AWSSecretAccessKey string `envvar:"AWS_SECRET_ACCESS_KEY"`
	RedisServerAddress string `envvar:"REDIS_SERVER_ADDRESS"`
	SNSTopicARN        string `envvar:"SNS_TOPIC_ARN"`
}

func NewConfig

func NewConfig() (*Config, error)

func (*Config) NewRedisPool

func (c *Config) NewRedisPool() *redis.Pool

func (*Config) NewSNSClient

func (c *Config) NewSNSClient() (snsiface.SNSAPI, error)

Jump to

Keyboard shortcuts

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