handlers

package
v0.0.0-...-030cd51 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupMatrixHandlers

func SetupMatrixHandlers(router *gin.Engine)

Types

type MatrixController

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

func (*MatrixController) EchoHandler

func (m *MatrixController) EchoHandler(c *gin.Context)

EchoHandler handler @Summary Matrix echo @Description Returns the matrix as a string in matrix format @Tags matrix @Accept mpfd @Produce html @Param file formData file true "csv file" @Success 200 {object} string @Failure 400 {object} string @Router /echo [post]

func (*MatrixController) FlattenHandler

func (m *MatrixController) FlattenHandler(c *gin.Context)

FlattenHandler handler @Summary Matrix flatten @Description Returns the matrix as a 1 line string, with values separated by commas. @Tags matrix @Accept mpfd @Produce html @Param file formData file true "csv file" @Success 200 {object} string @Failure 400 {object} string @Router /flatten [post]

func (*MatrixController) InvertHandler

func (m *MatrixController) InvertHandler(c *gin.Context)

InvertHandler handler @Summary Matrix invert @Description returns the matrix as a string in matrix format where the columns and rows are inverted. @Tags matrix @Accept mpfd @Produce html @Param file formData file true "csv file" @Success 200 {object} string @Failure 400 {object} string @Router /invert [post]

func (*MatrixController) MultiplyHandler

func (m *MatrixController) MultiplyHandler(c *gin.Context)

MultiplyHandler handler @Summary Matrix multiply @Description Returns the product of the integers in the matrix. @Tags matrix @Accept mpfd @Produce html @Param file formData file true "csv file" @Success 200 {object} string @Failure 400 {object} string @Router /multiply [post]

func (*MatrixController) SumHandler

func (m *MatrixController) SumHandler(c *gin.Context)

SumHandler handler @Summary Matrix sum @Description Returns the sum of the integers in the matrix. @Tags matrix @Accept mpfd @Produce html @Param file formData file true "csv file" @Success 200 {object} string @Failure 400 {object} string @Router /sum [post]

Jump to

Keyboard shortcuts

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