database

package
v0.0.0-...-b665193 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Get(key string) (interface{}, error)
	Set(key string, value interface{}) error
}

type Redis

type Redis struct {
}

func (Redis) Get

func (r Redis) Get(key string) (interface{}, error)

func (Redis) Set

func (r Redis) Set(key string, value interface{}) error

type SqlStore

type SqlStore struct {
	DB *sql.DB
}

func (*SqlStore) GetDB

func (s *SqlStore) GetDB() *sql.DB

type Store

type Store interface {
	GetDB() *sql.DB
}

Jump to

Keyboard shortcuts

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