actions

package
v0.2.0-pre Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ENV = envy.Get("GO_ENV", "development")

ENV is used to help switch settings based on where the application is being run. Default is "development".

S3 has the initialized client session

Functions

func App

func App() *buffalo.App

App is where all routes and middleware for buffalo should be defined. This is the nerve center of your application.

func PingPong

func PingPong(c buffalo.Context) error

PingPong default implementation.

func QuestionsGet

func QuestionsGet(c buffalo.Context) error

QuestionsGet gets a list of questions for a given campaign Optional "version" query param can specify a version, otherwise the latest one will be used

func ResponsesPost

func ResponsesPost(c buffalo.Context) error

ResponsesPost processes the question responses and returns the data type and security level in an Outcome

func RiskLevelsGet

func RiskLevelsGet(c buffalo.Context) error

RiskLevelsGet gets a list of supported risk levels and data types Optional "version" query param can specify a version, otherwise the latest one will be used

Types

type Outcome

type Outcome struct {
	ID        uuid.UUID `json:"id"`
	DataTypes []string  `json:"datatypes"`
	RiskLevel string    `json:"risklevel"`
}

Outcome has the data types and risk level outcome determined based on the questions response

Jump to

Keyboard shortcuts

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