Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllInputType = []InputType{ InputTypeOption, InputTypeText, InputTypeBoolean, InputTypeSatisfaction, }
View Source
var AllSurveyAudenceKind = []SurveyAudenceKind{ SurveyAudenceKindPublic, SurveyAudenceKindDomain, SurveyAudenceKindClose, }
Functions ¶
This section is empty.
Types ¶
type DomainCreator ¶
type InputType ¶
type InputType string
func (InputType) MarshalGQL ¶
func (*InputType) UnmarshalGQL ¶
type LastSurveyState ¶
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type QuestionCreator ¶
type SurveyAudenceKind ¶
type SurveyAudenceKind string
const ( SurveyAudenceKindPublic SurveyAudenceKind = "PUBLIC" SurveyAudenceKindDomain SurveyAudenceKind = "DOMAIN" SurveyAudenceKindClose SurveyAudenceKind = "CLOSE" )
func (SurveyAudenceKind) IsValid ¶
func (e SurveyAudenceKind) IsValid() bool
func (SurveyAudenceKind) MarshalGQL ¶
func (e SurveyAudenceKind) MarshalGQL(w io.Writer)
func (SurveyAudenceKind) String ¶
func (e SurveyAudenceKind) String() string
func (*SurveyAudenceKind) UnmarshalGQL ¶
func (e *SurveyAudenceKind) UnmarshalGQL(v interface{}) error
type SurveyDomain ¶
type SurveyGenerator ¶
type SurveyGenerator struct { Title string `json:"title"` Description string `json:"description"` Tags []string `json:"tags"` Questions []*QuestionCreator `json:"questions"` Target *SurveyTargetUsers `json:"target"` Metadata []*Pair `json:"metadata"` Logic *string `json:"logic"` Due *time.Time `json:"due"` }
type SurveyTargetUsers ¶
type SurveyTargetUsers struct { TargetKind SurveyAudenceKind `json:"targetKind"` Whitelist []uuid.UUID `json:"whitelist"` }
type SuveyGenerationResult ¶
Click to show internal directories.
Click to hide internal directories.