persistence

package
v0.0.0-...-a1a67c3 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB
View Source
var (
	StatsdClientNotInitialized = errors.New("statsd client not initialized")
)

Functions

func GetS3Client

func GetS3Client() *s3.S3

func GetS3Uploader

func GetS3Uploader() *s3manager.Uploader

func InitStatsd

func InitStatsd(port, namespace string) (*statsd.Client, error)

func MaybeSendStatsdGauge

func MaybeSendStatsdGauge(name string, value float64, tags []string, rate float64) error

func MaybeSendStatsdTiming

func MaybeSendStatsdTiming(name string, value time.Duration, tags []string, rate float64) error

func MustGetPGSession

func MustGetPGSession() *sql.DB

func Statsd

func Statsd() *statsd.Client

Types

This section is empty.

Jump to

Keyboard shortcuts

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