db

package
v0.0.0-...-40c8b04 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(conn *sqlx.DB, secretKey string) *DB

NewRepo returns db implements Repo interface

func (*DB) AuthKey

func (db *DB) AuthKey(userID, keyID string) (models.AuthKey, error)

func (*DB) DeleteAuthKey

func (db *DB) DeleteAuthKey(userID, keyID string) error

func (*DB) SetAuthKey

func (db *DB) SetAuthKey(authKey models.AuthKey) error

type TestSuite

type TestSuite struct {
	suite.Suite
	Conn *rdb.DB
}

func (*TestSuite) Reset

func (s *TestSuite) Reset()

func (*TestSuite) SetupSuite

func (s *TestSuite) SetupSuite()

func (*TestSuite) TearDownSuite

func (s *TestSuite) TearDownSuite()

Jump to

Keyboard shortcuts

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