app

package module
v0.0.0-...-c1f85f1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

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.

Directories

Path Synopsis
mocks

Jump to

Keyboard shortcuts

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