actions

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ENV is used to help switch settings based on where the
	// application is being run. Default is "development".
	ENV = envy.Get("GO_ENV", "development")

	// S3 has the initialized client session
	S3 s3.Client

	// Version is the main version number
	Version = proctor.Version

	// VersionPrerelease is a prerelease marker
	VersionPrerelease = proctor.VersionPrerelease

	// BuildStamp is the timestamp the binary was built, it should be set at buildtime with ldflags
	BuildStamp = proctor.BuildStamp

	// GitHash is the git sha of the built binary, it should be set at buildtime with ldflags
	GitHash = proctor.GitHash
)

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

func VersionHandler added in v0.3.0

func VersionHandler(c buffalo.Context) error

VersionHandler returns the app version.

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