Documentation
¶
Index ¶
Constants ¶
View Source
const ( CacheURLEnvVar = "CACHE_URL" CachePasswordEnvVar = "CACHE_PASSWORD" )
Variables ¶
View Source
var ErrCacheNotConfigured = errors.New("cache env variables not configured")
Functions ¶
func NewService ¶
func NewService() (*service.TwitterService, *redis.Client, error)
Creates a new service.TwitterService that connects to cache from information in env vars.
Returns ErrCacheNotConfigured if env vars are not configured or an error is the connection cannot be established
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.