dummydata

package
v0.0.0-...-1d7a7e7 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeData

func MakeData(number int)

MakeData makes dummy data and puts it into the db

func MakeExperiment

func MakeExperiment(sampleID int, experimentID int) models.Experiment

MakeExperiment makes a experiemnt provided a experiment ID

func MakePatient

func MakePatient(patientID int) models.Patient

MakePatient makes a patient provided a pateint ID

func MakeResult

func MakeResult(experimentID int, resultID int) models.Result

MakeResult makes a result provided a result ID

func MakeResultDetail

func MakeResultDetail(resultID int, resultdetailID int) models.Resultdetails

MakeResultDetail makes a result detail provided a resiltdetail ID

func MakeSample

func MakeSample(patientID int, sampleID int) models.Sample

MakeSample makes a sample provided a sample ID

Types

type GeneArray

type GeneArray struct {
	Genes []string
}

GeneArray is an object with an array of gene types

func (*GeneArray) GetGenes

func (g *GeneArray) GetGenes() *GeneArray

GetGenes fills the gene array struct

type RandomPerson

type RandomPerson struct {
	Name    string `json:"name,omitempty"`
	Surname string `json:"surname,omitempty"`
	Gender  string `json:"gender,omitempty"`
	Region  string `json:"region,omitempty"`
}

RandomPerson is a scruct to help make real names

Jump to

Keyboard shortcuts

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