rpcclient

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSONRPCMethodGetServerInfo_Client                                   = "get_server_info"
	JSONRPCMethodCreateAccount_Client                                   = "create_account"
	JSONRPCMethodGetAccountList_Client                                  = "get_account_list"
	JSONRPCMethodGetAccount_Client                                      = "get_account"
	JSONRPCMethodUpdateAccount_Client                                   = "update_account"
	JSONRPCMethodCreateSession_Client                                   = "create_session"
	JSONRPCMethodGetSession_Client                                      = "get_session"
	JSONRPCMethodDeleteSession_Client                                   = "delete_session"
	JSONRPCMethodCreateProblem_Client                                   = "create_problem"
	JSONRPCMethodGetProblemSnippetList_Client                           = "get_problem_snippet_list"
	JSONRPCMethodGetProblem_Client                                      = "get_problem"
	JSONRPCMethodUpdateProblem_Client                                   = "update_problem"
	JSONRPCMethodDeleteProblem_Client                                   = "delete_problem"
	JSONRPCMethodCreateTestCase_Client                                  = "create_test_case"
	JSONRPCMethodCreateTestCaseList_Client                              = "create_test_case_list"
	JSONRPCMethodGetProblemTestCaseSnippetList_Client                   = "get_problem_test_case_snippet_list"
	JSONRPCMethodGetTestCase_Client                                     = "get_test_case"
	JSONRPCMethodUpdateTestCase_Client                                  = "update_test_case"
	JSONRPCMethodDeleteTestCase_Client                                  = "delete_test_case"
	JSONRPCMethodGetAccountProblemSnippetList_Client                    = "get_account_problem_snippet_list"
	JSONRPCMethodCreateSubmission_Client                                = "create_submission"
	JSONRPCMethodGetSubmissionSnippetList_Client                        = "get_submission_snippet_list"
	JSONRPCMethodGetSubmission_Client                                   = "get_submission"
	JSONRPCMethodUpdateSubmission_Client                                = "update_submission"
	JSONRPCMethodDeleteSubmission_Client                                = "delete_submission"
	JSONRPCMethodGetAccountSubmissionSnippetList_Client                 = "get_account_submission_snippet_list"
	JSONRPCMethodGetProblemSubmissionSnippetList_Client                 = "get_problem_submission_snippet_list"
	JSONRPCMethodGetAccountProblemSubmissionSnippetList_Client          = "get_account_problem_submission_snippet_list"
	JSONRPCMethodGetAndUpdateFirstSubmittedSubmissionToExecuting_Client = "get_and_update_first_submitted_submission_to_executing"
	JSONRPCMethodUpdateSetting_Client                                   = "update_setting"
)

List of the client JSON-RPC methods.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIClient

type APIClient interface {
	GetServerInfo(ctx context.Context, in *rpc.GetServerInfoRequest, mods ...client.Mod) (*rpc.GetServerInfoResponse, error)
	CreateAccount(ctx context.Context, in *rpc.CreateAccountRequest, mods ...client.Mod) (*rpc.CreateAccountResponse, error)
	GetAccountList(ctx context.Context, in *rpc.GetAccountListRequest, mods ...client.Mod) (*rpc.GetAccountListResponse, error)
	GetAccount(ctx context.Context, in *rpc.GetAccountRequest, mods ...client.Mod) (*rpc.GetAccountResponse, error)
	UpdateAccount(ctx context.Context, in *rpc.UpdateAccountRequest, mods ...client.Mod) (*rpc.UpdateAccountResponse, error)
	CreateSession(ctx context.Context, in *rpc.CreateSessionRequest, mods ...client.Mod) (*rpc.CreateSessionResponse, error)
	GetSession(ctx context.Context, in *rpc.GetSessionRequest, mods ...client.Mod) (*rpc.GetSessionResponse, error)
	DeleteSession(ctx context.Context, in *rpc.DeleteSessionRequest, mods ...client.Mod) (*rpc.DeleteSessionResponse, error)
	CreateProblem(ctx context.Context, in *rpc.CreateProblemRequest, mods ...client.Mod) (*rpc.CreateProblemResponse, error)
	GetProblemSnippetList(ctx context.Context, in *rpc.GetProblemSnippetListRequest, mods ...client.Mod) (*rpc.GetProblemSnippetListResponse, error)
	GetProblem(ctx context.Context, in *rpc.GetProblemRequest, mods ...client.Mod) (*rpc.GetProblemResponse, error)
	UpdateProblem(ctx context.Context, in *rpc.UpdateProblemRequest, mods ...client.Mod) (*rpc.UpdateProblemResponse, error)
	DeleteProblem(ctx context.Context, in *rpc.DeleteProblemRequest, mods ...client.Mod) (*rpc.DeleteProblemResponse, error)
	CreateTestCase(ctx context.Context, in *rpc.CreateTestCaseRequest, mods ...client.Mod) (*rpc.CreateTestCaseResponse, error)
	CreateTestCaseList(ctx context.Context, in *rpc.CreateTestCaseListRequest, mods ...client.Mod) (*rpc.CreateTestCaseListResponse, error)
	GetProblemTestCaseSnippetList(ctx context.Context, in *rpc.GetProblemTestCaseSnippetListRequest, mods ...client.Mod) (*rpc.GetProblemTestCaseSnippetListResponse, error)
	GetTestCase(ctx context.Context, in *rpc.GetTestCaseRequest, mods ...client.Mod) (*rpc.GetTestCaseResponse, error)
	UpdateTestCase(ctx context.Context, in *rpc.UpdateTestCaseRequest, mods ...client.Mod) (*rpc.UpdateTestCaseResponse, error)
	DeleteTestCase(ctx context.Context, in *rpc.DeleteTestCaseRequest, mods ...client.Mod) (*rpc.DeleteTestCaseResponse, error)
	GetAccountProblemSnippetList(ctx context.Context, in *rpc.GetAccountProblemSnippetListRequest, mods ...client.Mod) (*rpc.GetAccountProblemSnippetListResponse, error)
	CreateSubmission(ctx context.Context, in *rpc.CreateSubmissionRequest, mods ...client.Mod) (*rpc.CreateSubmissionResponse, error)
	GetSubmissionSnippetList(ctx context.Context, in *rpc.GetSubmissionSnippetListRequest, mods ...client.Mod) (*rpc.GetSubmissionSnippetListResponse, error)
	GetSubmission(ctx context.Context, in *rpc.GetSubmissionRequest, mods ...client.Mod) (*rpc.GetSubmissionResponse, error)
	UpdateSubmission(ctx context.Context, in *rpc.UpdateSubmissionRequest, mods ...client.Mod) (*rpc.UpdateSubmissionResponse, error)
	DeleteSubmission(ctx context.Context, in *rpc.DeleteSubmissionRequest, mods ...client.Mod) (*rpc.DeleteSubmissionResponse, error)
	GetAccountSubmissionSnippetList(ctx context.Context, in *rpc.GetAccountSubmissionSnippetListRequest, mods ...client.Mod) (*rpc.GetAccountSubmissionSnippetListResponse, error)
	GetProblemSubmissionSnippetList(ctx context.Context, in *rpc.GetProblemSubmissionSnippetListRequest, mods ...client.Mod) (*rpc.GetProblemSubmissionSnippetListResponse, error)
	GetAccountProblemSubmissionSnippetList(ctx context.Context, in *rpc.GetAccountProblemSubmissionSnippetListRequest, mods ...client.Mod) (*rpc.GetAccountProblemSubmissionSnippetListResponse, error)
	GetAndUpdateFirstSubmittedSubmissionToExecuting(ctx context.Context, in *rpc.GetAndUpdateFirstSubmittedSubmissionToExecutingRequest, mods ...client.Mod) (*rpc.GetAndUpdateFirstSubmittedSubmissionToExecutingResponse, error)
	UpdateSetting(ctx context.Context, in *rpc.UpdateSettingRequest, mods ...client.Mod) (*rpc.UpdateSettingResponse, error)
}

APIClient is an API client for API service.

func NewAPIClient

func NewAPIClient(cl client.Invoker) APIClient

NewAPIClient returns new client implementation of the API service.

Jump to

Keyboard shortcuts

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