structs

package
v0.0.0-...-23cce6b Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error interface {
	error
	Status() int
}

type HandlerFunc

type HandlerFunc func(atClient *at.AirtableClient, w http.ResponseWriter, r *http.Request) error

HandlerFunc type used to specify a template for handler functions to follow

type Question

type Question struct {
	Text     string           `json:"text,omitempty"`
	Category QuestionCategory `json:"questionCategory,omitempty"`
}

type QuestionCategory

type QuestionCategory struct {
	Name string `json:"name,omitempty"`
}

type Questionnaire

type Questionnaire struct {
	Questions    []Question `json:"questions,omitempty"`
	User         user.User  `json:"question,omitempty"`
	CreationDate string     `json:"creationDate,omitempty"`
}

type QuestionnaireResponse

type QuestionnaireResponse struct {
	Question     Question `json:"question,omitempty"`
	CreationDate string   `json:"creationDate,omitempty"`
}

type Report

type Report struct {
	Responses  []QuestionnaireResponse `json:"responses,omitempty"`
	ReportDate string                  `json:"reportDate,omitemptry"`
}

type ReportSummary

type ReportSummary struct {
	SummaryDate string `json:"summaryDate"`
}

type Route

type Route struct {
	Name     string
	Method   string
	Pattern  string
	Function HandlerFunc
}

Jump to

Keyboard shortcuts

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