service

package
v0.0.0-...-a35a875 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUserExist

func CheckUserExist(ctx context.Context, account string) (bool, error)

func GetProblem

func GetProblem(ctx context.Context, slug string) (*model.Problem, error)

func GetProblemInfoList

func GetProblemInfoList(ctx context.Context) ([]model.ProblemInfo, int64, error)

func GetUser

func GetUser(ctx context.Context, account string) (*model.User, *core.SeviceError)

func Judge

func Judge(ctx context.Context, slug string, src string, srcLanguage string) (
	[]map[string]interface{}, error,
)

func PostJudgeTask

func PostJudgeTask(ctx context.Context, slug, src, srcLanguage string) error

func PutProblemPackage

func PutProblemPackage(ctx context.Context, slug, zipFile string) error

func StartLoginSession

func StartLoginSession(ctx context.Context, account, password string) (*string, *core.SeviceError)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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