handlers

package
v0.0.0-...-d4bcb5e Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
}

func (*Handler) HealthCheck

func (h *Handler) HealthCheck(c echo.Context) error

Healthcheck @Summary Returns Healthy @Description Returns Healthy @ID healthcheck @Success 200 {string} string "Healthy" @Router /healthcheck [get]

func (*Handler) NextQuestion

func (h *Handler) NextQuestion(c echo.Context) (err error)

NextQuestion @Summary Request Prioritized Questions @ID next-question @Accept json @Produce json @Success 200 {object} renderings.NextQuestionResponse @Failure 400 {object} renderings.QPSError @Failure 404 {object} renderings.QPSError @Failure 500 {object} renderings.QPSError @Param NextQuestion body bindings.NextQuestionRequest 1604599804740 "Journey 1" ["Benefit 1"] [models.Question] [models.Benefit] @Router /next [post]

type HandlerServiceInterface

type HandlerServiceInterface interface {
	HealthCheck(c echo.Context) error
	NextQuestion(c echo.Context) (err error)
}
var HandlerService HandlerServiceInterface = new(Handler)

Jump to

Keyboard shortcuts

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