helpers

package
v0.0.0-...-d4224cb Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMockApp

func GetMockApp() *models.App

GetMockApp returns a dummy app

func GetMockAppList

func GetMockAppList() []models.App

GetMockAppList returns some dummy apps

func GetMockAppVersionForDisableAll

func GetMockAppVersionForDisableAll() models.Version

Get version strut for the disable all.

func GetMockAppVersionList

func GetMockAppVersionList() []models.Version

GetMockAppVersionList returns some dummy app versions

func GetMockDevice

func GetMockDevice() *models.Device

GetMockDevice returns a mock device

func GetMockDevices

func GetMockDevices(number int) []models.Device

GetMockDevices generates a slice of Devices

func GetMockUser

func GetMockUser() *models.User

GetMockUser returns a dummy user

func GetMockVersion

func GetMockVersion() *models.Version

GetMockVersion returns a mock version

func GetUUID

func GetUUID() string

func IsValidUUID

func IsValidUUID(id string) bool

IsValidUUID helper function takes in a string and confirms is a UUID and returns bool

func SeedDatabase

func SeedDatabase(db *sql.DB)

Seed the database with some sample data

Types

This section is empty.

Jump to

Keyboard shortcuts

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