smoothie_runner

package module
v0.0.0-...-73e6f01 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package smoothie_runner is a generated protocol buffer package.

It is generated from these files:

smoothie-runner.proto

It has these top-level messages:

TestSolutionRequest
Solution
Problem
ProblemBatch
ProblemBatchCase
TestSolutionResponse
TestCaseResult

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSmoothieRunnerAPIServer

func RegisterSmoothieRunnerAPIServer(s *grpc.Server, srv SmoothieRunnerAPIServer)

Types

type Problem

type Problem struct {
	TestBatches       []*ProblemBatch `protobuf:"bytes,1,rep,name=testBatches" json:"testBatches,omitempty"`
	ProblemID         uint64          `protobuf:"varint,2,opt,name=problemID" json:"problemID,omitempty"`
	TestCasesHashCode uint64          `protobuf:"varint,3,opt,name=testCasesHashCode" json:"testCasesHashCode,omitempty"`
}

func (*Problem) Descriptor

func (*Problem) Descriptor() ([]byte, []int)

func (*Problem) GetProblemID

func (m *Problem) GetProblemID() uint64

func (*Problem) GetTestBatches

func (m *Problem) GetTestBatches() []*ProblemBatch

func (*Problem) GetTestCasesHashCode

func (m *Problem) GetTestCasesHashCode() uint64

func (*Problem) ProtoMessage

func (*Problem) ProtoMessage()

func (*Problem) Reset

func (m *Problem) Reset()

func (*Problem) String

func (m *Problem) String() string

type ProblemBatch

type ProblemBatch struct {
	Cases []*ProblemBatchCase `protobuf:"bytes,1,rep,name=cases" json:"cases,omitempty"`
}

func (*ProblemBatch) Descriptor

func (*ProblemBatch) Descriptor() ([]byte, []int)

func (*ProblemBatch) GetCases

func (m *ProblemBatch) GetCases() []*ProblemBatchCase

func (*ProblemBatch) ProtoMessage

func (*ProblemBatch) ProtoMessage()

func (*ProblemBatch) Reset

func (m *ProblemBatch) Reset()

func (*ProblemBatch) String

func (m *ProblemBatch) String() string

type ProblemBatchCase

type ProblemBatchCase struct {
	Input          string  `protobuf:"bytes,1,opt,name=input" json:"input,omitempty"`
	ExpectedAnswer string  `protobuf:"bytes,2,opt,name=expectedAnswer" json:"expectedAnswer,omitempty"`
	TimeLimit      float64 `protobuf:"fixed64,3,opt,name=timeLimit" json:"timeLimit,omitempty"`
	MemLimit       float64 `protobuf:"fixed64,4,opt,name=memLimit" json:"memLimit,omitempty"`
}

func (*ProblemBatchCase) Descriptor

func (*ProblemBatchCase) Descriptor() ([]byte, []int)

func (*ProblemBatchCase) GetExpectedAnswer

func (m *ProblemBatchCase) GetExpectedAnswer() string

func (*ProblemBatchCase) GetInput

func (m *ProblemBatchCase) GetInput() string

func (*ProblemBatchCase) GetMemLimit

func (m *ProblemBatchCase) GetMemLimit() float64

func (*ProblemBatchCase) GetTimeLimit

func (m *ProblemBatchCase) GetTimeLimit() float64

func (*ProblemBatchCase) ProtoMessage

func (*ProblemBatchCase) ProtoMessage()

func (*ProblemBatchCase) Reset

func (m *ProblemBatchCase) Reset()

func (*ProblemBatchCase) String

func (m *ProblemBatchCase) String() string

type SmoothieRunnerAPIClient

type SmoothieRunnerAPIClient interface {
	TestSolution(ctx context.Context, opts ...grpc.CallOption) (SmoothieRunnerAPI_TestSolutionClient, error)
}

func NewSmoothieRunnerAPIClient

func NewSmoothieRunnerAPIClient(cc *grpc.ClientConn) SmoothieRunnerAPIClient

type SmoothieRunnerAPIServer

type SmoothieRunnerAPIServer interface {
	TestSolution(SmoothieRunnerAPI_TestSolutionServer) error
}

type SmoothieRunnerAPI_TestSolutionClient

type SmoothieRunnerAPI_TestSolutionClient interface {
	Send(*TestSolutionRequest) error
	Recv() (*TestSolutionResponse, error)
	grpc.ClientStream
}

type SmoothieRunnerAPI_TestSolutionServer

type SmoothieRunnerAPI_TestSolutionServer interface {
	Send(*TestSolutionResponse) error
	Recv() (*TestSolutionRequest, error)
	grpc.ServerStream
}

type Solution

type Solution struct {
	Problem  *Problem `protobuf:"bytes,1,opt,name=problem" json:"problem,omitempty"`
	Language string   `protobuf:"bytes,2,opt,name=language" json:"language,omitempty"`
	Code     string   `protobuf:"bytes,3,opt,name=code" json:"code,omitempty"`
}

func (*Solution) Descriptor

func (*Solution) Descriptor() ([]byte, []int)

func (*Solution) GetCode

func (m *Solution) GetCode() string

func (*Solution) GetLanguage

func (m *Solution) GetLanguage() string

func (*Solution) GetProblem

func (m *Solution) GetProblem() *Problem

func (*Solution) ProtoMessage

func (*Solution) ProtoMessage()

func (*Solution) Reset

func (m *Solution) Reset()

func (*Solution) String

func (m *Solution) String() string

type TestCaseResult

type TestCaseResult struct {
	BatchNumber uint64  `protobuf:"varint,1,opt,name=batchNumber" json:"batchNumber,omitempty"`
	CaseNumber  uint64  `protobuf:"varint,2,opt,name=caseNumber" json:"caseNumber,omitempty"`
	Result      string  `protobuf:"bytes,3,opt,name=result" json:"result,omitempty"`
	ResultInfo  string  `protobuf:"bytes,4,opt,name=resultInfo" json:"resultInfo,omitempty"`
	Time        float64 `protobuf:"fixed64,5,opt,name=time" json:"time,omitempty"`
	MemUsage    float64 `protobuf:"fixed64,6,opt,name=memUsage" json:"memUsage,omitempty"`
}

func (*TestCaseResult) Descriptor

func (*TestCaseResult) Descriptor() ([]byte, []int)

func (*TestCaseResult) GetBatchNumber

func (m *TestCaseResult) GetBatchNumber() uint64

func (*TestCaseResult) GetCaseNumber

func (m *TestCaseResult) GetCaseNumber() uint64

func (*TestCaseResult) GetMemUsage

func (m *TestCaseResult) GetMemUsage() float64

func (*TestCaseResult) GetResult

func (m *TestCaseResult) GetResult() string

func (*TestCaseResult) GetResultInfo

func (m *TestCaseResult) GetResultInfo() string

func (*TestCaseResult) GetTime

func (m *TestCaseResult) GetTime() float64

func (*TestCaseResult) ProtoMessage

func (*TestCaseResult) ProtoMessage()

func (*TestCaseResult) Reset

func (m *TestCaseResult) Reset()

func (*TestCaseResult) String

func (m *TestCaseResult) String() string

type TestSolutionRequest

type TestSolutionRequest struct {
	Solution              *Solution `protobuf:"bytes,1,opt,name=solution" json:"solution,omitempty"`
	TestBatchEvenIfFailed bool      `protobuf:"varint,2,opt,name=testBatchEvenIfFailed" json:"testBatchEvenIfFailed,omitempty"`
	CancelTesting         bool      `protobuf:"varint,3,opt,name=cancelTesting" json:"cancelTesting,omitempty"`
}

func (*TestSolutionRequest) Descriptor

func (*TestSolutionRequest) Descriptor() ([]byte, []int)

func (*TestSolutionRequest) GetCancelTesting

func (m *TestSolutionRequest) GetCancelTesting() bool

func (*TestSolutionRequest) GetSolution

func (m *TestSolutionRequest) GetSolution() *Solution

func (*TestSolutionRequest) GetTestBatchEvenIfFailed

func (m *TestSolutionRequest) GetTestBatchEvenIfFailed() bool

func (*TestSolutionRequest) ProtoMessage

func (*TestSolutionRequest) ProtoMessage()

func (*TestSolutionRequest) Reset

func (m *TestSolutionRequest) Reset()

func (*TestSolutionRequest) String

func (m *TestSolutionRequest) String() string

type TestSolutionResponse

type TestSolutionResponse struct {
	TestCaseResult   *TestCaseResult `protobuf:"bytes,1,opt,name=testCaseResult" json:"testCaseResult,omitempty"`
	CompletedTesting bool            `protobuf:"varint,2,opt,name=completedTesting" json:"completedTesting,omitempty"`
	CompileError     string          `protobuf:"bytes,3,opt,name=compileError" json:"compileError,omitempty"`
}

func (*TestSolutionResponse) Descriptor

func (*TestSolutionResponse) Descriptor() ([]byte, []int)

func (*TestSolutionResponse) GetCompileError

func (m *TestSolutionResponse) GetCompileError() string

func (*TestSolutionResponse) GetCompletedTesting

func (m *TestSolutionResponse) GetCompletedTesting() bool

func (*TestSolutionResponse) GetTestCaseResult

func (m *TestSolutionResponse) GetTestCaseResult() *TestCaseResult

func (*TestSolutionResponse) ProtoMessage

func (*TestSolutionResponse) ProtoMessage()

func (*TestSolutionResponse) Reset

func (m *TestSolutionResponse) Reset()

func (*TestSolutionResponse) String

func (m *TestSolutionResponse) String() string

Directories

Path Synopsis
runner module

Jump to

Keyboard shortcuts

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