mock

package
v0.0.0-...-843e88f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const JWT_SECRET = "abc"

Variables

This section is empty.

Functions

func GenerateJWT

func GenerateJWT(userID int) (string, error)

func Mysql

func Mysql() (*sql.DB, *sqlx.DB, sqlmock.Sqlmock)

Types

type FakeDB

type FakeDB struct{}

func (*FakeDB) Select

func (db *FakeDB) Select(dest interface{}, query string, args ...interface{}) error

type FakeStore

type FakeStore struct{}

type MockContext

type MockContext struct{}

func (MockContext) Deadline

func (ctx MockContext) Deadline() (deadline time.Time, ok bool)

func (MockContext) Done

func (ctx MockContext) Done() <-chan struct{}

func (MockContext) Err

func (ctx MockContext) Err() error

func (MockContext) Value

func (ctx MockContext) Value(key interface{}) interface{}

Jump to

Keyboard shortcuts

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