surveys

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByFilename

type ByFilename []LauncherSchema

ByFilename implements sort.Interface based on the Name field.

func (ByFilename) Len

func (a ByFilename) Len() int

func (ByFilename) Less

func (a ByFilename) Less(i, j int) bool

func (ByFilename) Swap

func (a ByFilename) Swap(i, j int)

type LauncherSchema

type LauncherSchema struct {
	Name string
	URL  string
}

LauncherSchema is a representation of a schema in the Launcher

func FindSurveyByName

func FindSurveyByName(name string) LauncherSchema

FindSurveyByName Finds the schema in the list of available schemas

func LauncherSchemaFromFilename

func LauncherSchemaFromFilename(filename string) LauncherSchema

LauncherSchemaFromFilename creates a LauncherSchema record from a schema filename

type LauncherSchemas

type LauncherSchemas struct {
	Business []LauncherSchema
	Social   []LauncherSchema
	Test     []LauncherSchema
	Other    []LauncherSchema
}

LauncherSchemas is a separation of Test and Live schemas

func GetAvailableSchemas

func GetAvailableSchemas() LauncherSchemas

GetAvailableSchemas Gets the list of static schemas an joins them with any schemas from the eq-survey-register if defined

type RegisterResponse

type RegisterResponse struct {
	jsonhal.Hal
}

RegisterResponse is the response from the eq-survey-register request

type Schema

type Schema struct {
	jsonhal.Hal
	Name string `json:"name"`
}

Schema is an available schema

type Schemas

type Schemas []Schema

Schemas is a list of Schema

Jump to

Keyboard shortcuts

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