Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupMatrixHandlers ¶
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]