package vtrpc

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message CallerID

vtrpc.proto:34

CallerID is passed along RPCs to identify the originating client for a request. It is not meant to be secure, but only informational. The client can put whatever info they want in these fields, and they will be trusted by the servers. The fields will just be used for logging purposes, and to easily find a client. VtGate propagates it to VtTablet, and VtTablet may use this information for monitoring purposes, to display on dashboards, or for blacklisting purposes.

Used in: binlogdata.VStreamRequest, binlogdata.VStreamResultsRequest, binlogdata.VStreamRowsRequest, query.BeginExecuteBatchRequest, query.BeginExecuteRequest, query.BeginRequest, query.CommitPreparedRequest, query.CommitRequest, query.ConcludeTransactionRequest, query.CreateTransactionRequest, query.ExecuteBatchRequest, query.ExecuteRequest, query.MessageAckRequest, query.MessageStreamRequest, query.PrepareRequest, query.ReadTransactionRequest, query.ReleaseRequest, query.ReserveBeginExecuteRequest, query.ReserveExecuteRequest, query.RollbackPreparedRequest, query.RollbackRequest, query.SetRollbackRequest, query.StartCommitRequest, query.StreamExecuteRequest, vtgate.ExecuteBatchRequest, vtgate.ExecuteRequest, vtgate.ResolveTransactionRequest, vtgate.StreamExecuteRequest, vtgate.VStreamRequest

enum Code

vtrpc.proto:56

Code represents canonical error codes. The names, numbers and comments must match the ones defined by grpc: https://godoc.org/google.golang.org/grpc/codes.

Used in: RPCError

enum LegacyErrorCode

vtrpc.proto:183

LegacyErrorCode is the enum values for Errors. This type is deprecated. Use Code instead. Background: In the initial design, we thought that we may end up with a different list of canonical error codes than the ones defined by grpc. In hindsight, we realize that the grpc error codes are fairly generic and mostly sufficient. In order to avoid confusion, this type will be deprecated in favor of the new Code that matches exactly what grpc defines. Some names below have a _LEGACY suffix. This is to prevent name collisions with Code.

Used in: RPCError

message RPCError

vtrpc.proto:258

RPCError is an application-level error structure returned by VtTablet (and passed along by VtGate if appropriate). We use this so the clients don't have to parse the error messages, but instead can depend on the value of the code.

Used in: query.BeginExecuteBatchResponse, query.BeginExecuteResponse, query.ReserveBeginExecuteResponse, query.ReserveExecuteResponse, query.ResultWithError, vtgate.ExecuteBatchResponse, vtgate.ExecuteResponse