gradeapi

package
v0.0.0-...-7de36fb Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	gradeproto.UnimplementedAPIServer
	// contains filtered or unexported fields
}

API is the API.

func New

func New(logger *zap.Logger, dialer Dialer) *API

New creates a new API.

func (*API) RequestGrading

RequestGrading is the gRPC endpoint for requesting grading.

func (*API) SendGradingRequest

func (a *API) SendGradingRequest(ctx context.Context) (int, error)

SendGradingRequest sends a grading request to the grader service.

type Dialer

type Dialer interface {
	DialContext(ctx context.Context, network, address string) (net.Conn, error)
}

Dialer is a dialer.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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