Help us shape the future of Go! Take the 2026 Go Developer Survey

cachedb

package module
v0.0.0-...-1a737b8 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectPostgresql

func ConnectPostgresql() (*pgx.Conn, error)

ConnectPostgresql creates a postgresql db connection, and sends back a pointer to the object along with any errors

func ConnectPostgresqlConfig

func ConnectPostgresqlConfig(config pgx.ConnConfig) (*pgx.Conn, error)

ConnectPostgresqlConfig creates a postgresql db connection with a manual config, and sends back a pointer to the object along with any errors

func ConnectRedis

func ConnectRedis(database int) *redis.Pool

ConnectRedis creates a redis db connection, and sends back a pointer to the object

Types

type DataManager

type DataManager struct {
	// contains filtered or unexported fields
}

DataManager contains the redis pool, the pgdb connection

Jump to

Keyboard shortcuts

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