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

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