testutils

package
v0.0.0-...-15a86da Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var JWTExpiry = "2h"
View Source
var JWTIssuer = "test_endpoints"
View Source
var JWTKey = "random"

Functions

func CloseDatabase

func CloseDatabase(db *gorm.DB) error

func CreateMemDatabase

func CreateMemDatabase() (*gorm.DB, error)

func DropTables

func DropTables(db *gorm.DB) error

func ValidToken

func ValidToken() (string, error)

Types

type MockLocationFinder

type MockLocationFinder struct{}

func (MockLocationFinder) GetCityCenter

func (finder MockLocationFinder) GetCityCenter(city string) (location.Coordinates, error)

func (MockLocationFinder) GetPostalLatitudeAndLongitude

func (finder MockLocationFinder) GetPostalLatitudeAndLongitude(city string, limit int64) (float64, float64, error)

Jump to

Keyboard shortcuts

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