services

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateAHP

func CalculateAHP(
	r *http.Request,
	body []models.SubmitAnswerRequest,
	mpc ahp.MPC,
	criteriaWeight ahp.CriteriaWeight,
	tx *sqlx.Tx,
) error

func CalculateTopsis added in v1.1.0

func CalculateTopsis(r *http.Request, body []models.SubmitAnswerRequest, tx *sqlx.Tx, criteriaWeight ahp.CriteriaWeight) error

func CalculateTopsisAHP added in v1.1.0

func CalculateTopsisAHP(r *http.Request, body []models.SubmitAnswerRequest, tx *sqlx.Tx, criteriaWeight ahp.CriteriaWeight) error

func CalculateTopsisCombinative added in v1.1.0

func CalculateTopsisCombinative(r *http.Request, body []models.SubmitAnswerRequest, tx *sqlx.Tx, criteriaWeight ahp.CriteriaWeight) error

func InitSubCriteriaWeights

func InitSubCriteriaWeights()

Types

type AHPServiceError

type AHPServiceError struct {
	Err        error
	StatusCode int
}

func (*AHPServiceError) Error

func (e *AHPServiceError) Error() string

type TOPSISServiceError added in v1.1.0

type TOPSISServiceError struct {
	Err        error
	StatusCode int
}

func (*TOPSISServiceError) Error added in v1.1.0

func (e *TOPSISServiceError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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