utils

package
v0.0.0-...-ac5cf8d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//Success constants
	GradesByStudent = "Successfully retrieved all the grades by student"
	AllGrades       = "Successfully retrieved all grades"
	GradeInserted   = "Successfully inserted grade with ID %s"
	GradeDeleted    = "Successfully deleted grade with ID %s"
	GradeEdited     = "Successfully edited grade with ID %s"
	GradeRetrieved  = "Successfully retrieved the grade"

	//Errors constants
	GradeNotFound        = "Grade not found"
	InvalidParameters    = "Invalid parameters"
	MissingParameters    = "Missing parameters"
	ValueShouldBeGreater = "Grade value should be greater than zero"
	DeleteFailed         = "Failed to delete the grade"
	EditFailed           = "Failed to edit the grade"
)

Variables

This section is empty.

Functions

func ErrorMessageToJSON

func ErrorMessageToJSON(message string) string

func ResultMessageAndDataToJSON

func ResultMessageAndDataToJSON(message, data string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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