Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DB *pop.Connection
DB is a connection to your database to be used throughout your application.
var Q goyesql.Queries
Q is a map of SQL queries
Functions ¶
This section is empty.
Types ¶
type Comment ¶
type Comment struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UserEmail string `json:"user_email" db:"user_email"`
UserID uuid.UUID `json:"user_id" db:"user_id"`
Message string `json:"message" db:"message"`
Org slices.Map `json:"org" db:"org"`
}
Comment is a struct for the model
func (*Comment) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*Comment) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*Comment) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
type File ¶
type File struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UserID uuid.UUID `json:"user_id" db:"user_id"`
Name string `json:"name" db:"name"`
File []byte `json:"file" db:"file"`
}
File is the survey data file
func (*File) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*File) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*File) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
type FileInfo ¶
type FileInfo struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UserID uuid.UUID `json:"user_id" db:"user_id"`
Name string `json:"name" db:"name"`
}
FileInfo is the survey data file info
type IpsativeData ¶
type IpsativeData struct {
QuestionID uuid.UUID `json:"question_id" db:"question_id"`
QuestionTitle string `json:"question_title" db:"question_title"`
QuestionOrderNumber int `json:"question_order_number" db:"question_order_number"`
AnswerID uuid.UUID `json:"answer_id" db:"answer_id"`
Answer string `json:"answer" db:"answer"`
Category string `json:"category" db:"category"`
AnswerOrderNumber int `json:"answer_order_number" db:"answer_order_number"`
}
IpsativeData is for the gets all ipsative data
func (IpsativeData) TableName ¶
func (IpsativeData) TableName() string
TableName overrides the schema and table name
type IpsativeSurvey ¶
type IpsativeSurvey Survey
IpsativeSurvey Is for the ipsative surveys available
func (IpsativeSurvey) TableName ¶
func (IpsativeSurvey) TableName() string
TableName overrides the schema and table name
type LikertQuestion ¶
type LikertQuestion Question
LikertQuestion is for the likert survey questions.
func (LikertQuestion) TableName ¶
func (LikertQuestion) TableName() string
TableName overrides the schema and table name
type LikertSurvey ¶
type LikertSurvey Survey
LikertSurvey Is for the ipsative surveys available
func (LikertSurvey) TableName ¶
func (LikertSurvey) TableName() string
TableName overrides the schema and table name
type PostComment ¶
type PostComment struct {
Message string `json:"message" db:"message"`
}
PostComment is a struct for the model to get from a post
type Question ¶
type Question struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
SurveyID uuid.UUID `json:"survey_id" db:"survey_id"`
ChoiceGroupID uuid.UUID `json:"choice_group_id" db:"choice_group_id"`
OrderNumber int `json:"order_number" db:"order_number"`
Title string `json:"title" db:"title"`
}
Question is the question info for the survey
type State ¶
State provides us with the current state of the user
func (*State) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*State) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*State) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
type StateBinding ¶
type StateBinding struct {
Status *string `json:"status"`
DownloadedReport *bool `json:"downloaded_report"`
}
StateBinding provides us with something to bind to
type Survey ¶
type Survey struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
Author string `json:"author" db:"author"`
Name string `json:"name" db:"name"`
Description string `json:"description" db:"description"`
Instructions string `json:"instructions" db:"instructions"`
}
Survey is the survey data
func (*Survey) Validate ¶
Validate gets run every time you call a "pop.Validate*" (pop.ValidateAndSave, pop.ValidateAndCreate, pop.ValidateAndUpdate) method. This method is not required and may be deleted.
func (*Survey) ValidateCreate ¶
ValidateCreate gets run every time you call "pop.ValidateAndCreate" method. This method is not required and may be deleted.
func (*Survey) ValidateUpdate ¶
ValidateUpdate gets run every time you call "pop.ValidateAndUpdate" method. This method is not required and may be deleted.
type SurveyResponse ¶
type SurveyResponse struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UserID uuid.UUID `json:"user_id" db:"user_id"`
SurveyID nulls.UUID `json:"survey_id" db:"survey_id"`
CollectorID nulls.UUID `json:"collector_id" db:"collector_id"`
}
SurveyResponse holds the survey responses and ids
func (SurveyResponse) String ¶
func (s SurveyResponse) String() string
String is not required by pop and may be deleted
func (SurveyResponse) TableName ¶
func (SurveyResponse) TableName() string
TableName overrides the schema and table name