model

package
v0.2.0-STORYTELLER Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Submission

type Submission struct {
	ID     int                        `json:"id"`
	Time   time.Time                  `json:"time"`
	IP     string                     `json:"ip"`
	Fields map[string]SubmissionField `json:"fields"`
}

type SubmissionField

type SubmissionField struct {
	ID    int    `json:"id"`
	Name  string `json:"name"`
	Label string `json:"label"`
	Value any    `json:"value"`
}

type Survey

type Survey struct {
	ID          int           `json:"id,omitempty"`
	Version     int           `json:"version,omitempty"`
	Title       string        `json:"title"`
	Description string        `json:"description"`
	Fields      []SurveyField `json:"fields"`
}

type SurveyField

type SurveyField struct {
	ID       int    `json:"id,omitempty"`
	Type     string `json:"type"`
	Name     string `json:"name"`
	Label    string `json:"label"`
	Required bool   `json:"required"`
	Options  any    `json:"options"`
}

Jump to

Keyboard shortcuts

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