models

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

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

Go to latest
Published: Aug 18, 2015 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

type Probe struct {
	Id                bson.ObjectId `bson:"_id,omitempty" json:"id"`
	Question          string
	PossibleResponses []string
	Responses         []string
}

func AllProbes

func AllProbes() []Probe

func GetById

func GetById(id string) Probe

func NewProbe

func NewProbe(question string, possibleResponses []string) Probe

func (Probe) Save

func (probe Probe) Save()

type ProbeResponse

type ProbeResponse struct {
	ProbeId  bson.ObjectId `json:"probe_id"`
	Response string
}

Jump to

Keyboard shortcuts

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