services

package
v0.0.0-...-6a85f19 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Grade

type Grade struct {
	ID      string `json:"id"`
	Subject string `json:"subject"`
	Type    string `json:"type"`
	Value   string `json:"value"`
	Student string `json:"student"`
}

type GradesStore

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

func (*GradesStore) DeleteGrade

func (g *GradesStore) DeleteGrade(idS string) *Grade

func (*GradesStore) EditGrade

func (g *GradesStore) EditGrade(idS string, grade Grade) *Grade

func (*GradesStore) GetGrade

func (g *GradesStore) GetGrade(idS string) *Grade

func (*GradesStore) GetGrades

func (g *GradesStore) GetGrades() []Grade

func (*GradesStore) GetGradesByStudent

func (g *GradesStore) GetGradesByStudent(student string) []Grade

func (*GradesStore) PostGrade

func (g *GradesStore) PostGrade(grade Grade) *Grade

type InvalidGrade

type InvalidGrade struct {
	ID      string            `json:"id"`
	Subject map[string]string `json:"subject"`
	Type    string            `json:"type"`
	Value   string            `json:"value"`
	Student string            `json:"student"`
}

Jump to

Keyboard shortcuts

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