db

package
v0.0.0-...-b8f4d2c Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Conn *pgxpool.Pool
	// contains filtered or unexported fields
}

func NewDatabase

func NewDatabase(config *config.Database) *Database

func (*Database) Close

func (db *Database) Close()

func (*Database) ConnString

func (db *Database) ConnString() string

func (*Database) Connect

func (db *Database) Connect() error

func (*Database) Migrate

func (db *Database) Migrate() error

type MemStore

type MemStore struct {
	Client *redis.Client
}

func NewMemStore

func NewMemStore(config *config.MemStore) *MemStore

func (*MemStore) Close

func (m *MemStore) Close()

func (*MemStore) Connect

func (m *MemStore) Connect() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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