surveys

package
v0.0.0-...-7f26107 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(rw http.ResponseWriter, req *http.Request, r render.Render)

func AllSubmissions

func AllSubmissions(rw http.ResponseWriter, req *http.Request, r render.Render)

func Get

func Get(rw http.ResponseWriter, req *http.Request, r render.Render, params martini.Params)

func GetSubmissionsBySurvey

func GetSubmissionsBySurvey(rw http.ResponseWriter, req *http.Request, params martini.Params, r render.Render)

func Submit

func Submit(rw http.ResponseWriter, req *http.Request)

Types

type SubmissionResponse

type SubmissionResponse struct {
	Submissions      []survey.SurveySubmission `json:"submissions"`
	TotalSubmissions int                       `json:"total_submissions"`
	CurrentPage      int                       `json:"current_page"`
	TotalResults     int                       `json:"total_results"`
}

type SurveyError

type SurveyError struct {
	Message string `json:"error"`
}

type SurveyResponse

type SurveyResponse struct {
	Surveys      []survey.Survey `json:"surveys"`
	TotalSurveys int             `json:"total_surveys"`
	CurrentPage  int             `json:"current_page"`
	TotalResults int             `json:"total_results"`
}

Jump to

Keyboard shortcuts

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