postgresql

package
v0.0.0-...-76bf06a Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgreSQL

type PostgreSQL struct {
	DB *sql.DB
}

PostgreSQL database driver abstraction

func (*PostgreSQL) Delete

func (m *PostgreSQL) Delete(ctx context.Context, key string) error

Delete serves to delete data from PostgreSQL database

func (*PostgreSQL) Get

func (m *PostgreSQL) Get(ctx context.Context, key string) ([]byte, error)

Get serves to retrieve cached data from PostgreSQL database

func (*PostgreSQL) Put

func (m *PostgreSQL) Put(ctx context.Context, key string, data []byte) error

Put serves to place data to PostgreSQL database as cache

Jump to

Keyboard shortcuts

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