admin

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	GetAllProblems() domain.AllProblemsAdminApp
	GetProblem(problemId uint) (*domain.ProblemAdminApp, error)
	CreateProblem(poserId uint, newProblem domain.ProblemAdminApp) (*domain.Problem, error)
	UpdateProblem(problemId uint, updatedProblem domain.ProblemAdminApp) (*domain.ProblemAdminApp, error)
	DeleteProblem(problemId uint) error
	GetStats() []domain.ProblemAdminStatsApp
}

func NewService

func NewService(database *db.Database) Service

Jump to

Keyboard shortcuts

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