Documentation ¶
Index ¶
- Constants
- Variables
- func NewClientAdaptor(c tarus.JudgeServiceClient) tarus.JudgeServiceServer
- func TransientJudge(c tarus.JudgeServiceServer, rawCtx context.Context, ...) (resp *tarus.MakeJudgeResponse, err error)
- func WithContainerEnvironment(c tarus.JudgeServiceServer, rawCtx context.Context, req *WithContainerRequest, ...) (err error)
- type ClientAdaptor
- func (c *ClientAdaptor) BundleContainer(ctx context.Context, request *tarus.BundleContainerRequest) (*emptypb.Empty, error)
- func (c *ClientAdaptor) CheckContainer(ctx context.Context, request *tarus.CheckContainerRequest) (*emptypb.Empty, error)
- func (c *ClientAdaptor) CloneContainer(ctx context.Context, request *tarus.CloneContainerRequest) (*emptypb.Empty, error)
- func (c *ClientAdaptor) CompileProgram(ctx context.Context, request *tarus.CompileProgramRequest) (*tarus.CompileProgramResponse, error)
- func (c *ClientAdaptor) CopyFile(ctx context.Context, request *tarus.CopyFileRequest) (*emptypb.Empty, error)
- func (c *ClientAdaptor) CreateContainer(ctx context.Context, request *tarus.CreateContainerRequest) (*emptypb.Empty, error)
- func (c *ClientAdaptor) Handshake(ctx context.Context, request *tarus.HandshakeRequest) (*tarus.HandshakeResponse, error)
- func (c *ClientAdaptor) MakeJudge(ctx context.Context, request *tarus.MakeJudgeRequest) (*tarus.MakeJudgeResponse, error)
- func (c *ClientAdaptor) QueryJudge(ctx context.Context, request *tarus.QueryJudgeRequest) (*tarus.QueryJudgeResponse, error)
- func (c *ClientAdaptor) RemoveContainer(ctx context.Context, request *tarus.RemoveContainerRequest) (*emptypb.Empty, error)
- type TransientJudgeRequest
- type WithContainerRequest
Constants ¶
View Source
const ( JudgeServiceApiAll = "All" JudgeServiceApiMinimum = "Min" )
Variables ¶
View Source
var JudgeStatusHash string
Functions ¶
func NewClientAdaptor ¶
func NewClientAdaptor(c tarus.JudgeServiceClient) tarus.JudgeServiceServer
func TransientJudge ¶
func TransientJudge(c tarus.JudgeServiceServer, rawCtx context.Context, rawReq *TransientJudgeRequest) (resp *tarus.MakeJudgeResponse, err error)
func WithContainerEnvironment ¶
func WithContainerEnvironment( c tarus.JudgeServiceServer, rawCtx context.Context, req *WithContainerRequest, cb func(rawCtx context.Context) error) (err error)
Types ¶
type ClientAdaptor ¶
type ClientAdaptor struct { tarus.UnimplementedJudgeServiceServer // contains filtered or unexported fields }
func (*ClientAdaptor) BundleContainer ¶
func (c *ClientAdaptor) BundleContainer(ctx context.Context, request *tarus.BundleContainerRequest) (*emptypb.Empty, error)
func (*ClientAdaptor) CheckContainer ¶
func (c *ClientAdaptor) CheckContainer(ctx context.Context, request *tarus.CheckContainerRequest) (*emptypb.Empty, error)
func (*ClientAdaptor) CloneContainer ¶
func (c *ClientAdaptor) CloneContainer(ctx context.Context, request *tarus.CloneContainerRequest) (*emptypb.Empty, error)
func (*ClientAdaptor) CompileProgram ¶
func (c *ClientAdaptor) CompileProgram(ctx context.Context, request *tarus.CompileProgramRequest) (*tarus.CompileProgramResponse, error)
func (*ClientAdaptor) CopyFile ¶
func (c *ClientAdaptor) CopyFile(ctx context.Context, request *tarus.CopyFileRequest) (*emptypb.Empty, error)
func (*ClientAdaptor) CreateContainer ¶
func (c *ClientAdaptor) CreateContainer(ctx context.Context, request *tarus.CreateContainerRequest) (*emptypb.Empty, error)
func (*ClientAdaptor) Handshake ¶
func (c *ClientAdaptor) Handshake(ctx context.Context, request *tarus.HandshakeRequest) (*tarus.HandshakeResponse, error)
func (*ClientAdaptor) MakeJudge ¶
func (c *ClientAdaptor) MakeJudge(ctx context.Context, request *tarus.MakeJudgeRequest) (*tarus.MakeJudgeResponse, error)
func (*ClientAdaptor) QueryJudge ¶
func (c *ClientAdaptor) QueryJudge(ctx context.Context, request *tarus.QueryJudgeRequest) (*tarus.QueryJudgeResponse, error)
func (*ClientAdaptor) RemoveContainer ¶
func (c *ClientAdaptor) RemoveContainer(ctx context.Context, request *tarus.RemoveContainerRequest) (*emptypb.Empty, error)
type TransientJudgeRequest ¶
type TransientJudgeRequest struct { ImageId string CompileFile string BinTarget string *tarus.MakeJudgeRequest }
type WithContainerRequest ¶
type WithContainerRequest = tarus.CreateContainerRequest
Source Files ¶
Click to show internal directories.
Click to hide internal directories.