persistence

package
v0.0.0-...-f4dd878 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 14 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 PrunePG

func PrunePG(pg *sql.DB, pruneDuration time.Duration) (int, int, error)

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