rest

package
v0.0.0-...-b973768 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunFlowValidator = jio.Object().Keys(jio.K{
	"primaryRequestArgs": jio.Object().Keys(jio.K{
		"namespace": jio.String().Required(),
		"name":      jio.String().Required(),
		"version":   jio.Number().Integer().Required(),
	}),
	"requestArgs": jio.Object().Required(),
	"requestTags": jio.Array().Required(),
})

RunFlowValidator ...

Functions

This section is empty.

Types

type HTTPError

type HTTPError struct {
	ErrorCode   int    `json:"error_code"`
	Message     string `json:"message"`
	UserMessage string `json:"user_message"`
}

HTTPError data model for http error

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler handles http rest requests

func CreateHandler

func CreateHandler(l *infra.Logger) *Handler

CreateHandler create a new http rest handler

func (*Handler) GetRouter

func (h *Handler) GetRouter() chi.Router

GetRouter returns the router

func (*Handler) NewFlowHandler

func (h *Handler) NewFlowHandler(logger *infra.Logger)

NewFlowHandler add route for flow

func (*Handler) NewHealthCheckHandler

func (h *Handler) NewHealthCheckHandler()

NewHealthCheckHandler add route for healthcheck

type PipelineFlowHandler

type PipelineFlowHandler struct {
	// contains filtered or unexported fields
}

PipelineFlowHandler ...

func (PipelineFlowHandler) Run

Run ...

type SingleProcessorFlowHandler

type SingleProcessorFlowHandler struct {
	// contains filtered or unexported fields
}

SingleProcessorFlowHandler ...

func (SingleProcessorFlowHandler) Run

Run ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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