vitess-gh/proto
Rohit Nayak 4be08c0a9b
Add option to specify heartbeat frequency
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
2021-06-21 12:07:38 +02:00
..
README.md
automation.proto
automationservice.proto
binlogdata.proto merge main, resolve conflict 2021-06-15 08:30:17 +03:00
binlogservice.proto
logutil.proto
mysqlctl.proto Move the parsing around, add link to issue 2021-06-14 17:02:10 -04:00
query.proto proto changed to send table name having changed schema 2021-04-30 19:52:34 +05:30
queryservice.proto
replicationdata.proto
tableacl.proto
tabletmanagerdata.proto Online DDL plan via Send; "singleton" migrations on tablets (#7785) 2021-04-22 14:58:26 +03:00
tabletmanagerservice.proto Online DDL plan via Send; "singleton" migrations on tablets (#7785) 2021-04-22 14:58:26 +03:00
throttlerdata.proto
throttlerservice.proto
topodata.proto Add External prefix to object names to remove ambiguity 2021-03-02 14:04:00 +01:00
vschema.proto Fixes comment to mention the existence of reference tables. 2020-12-04 17:41:23 -05:00
vtadmin.proto [vtadmin-api] Add HTTP endpoints for /api/srvvschemas and /api/srvvschema/{cluster}/{cell} 2021-06-01 07:16:27 -04:00
vtctldata.proto Add additional fields to BackupInfo proto and filtering options to GetBackupsRequest 2021-06-14 16:39:26 -04:00
vtctlservice.proto Add rpcs, run generators for `RefreshState(ByShard)?` methods 2021-06-13 15:52:26 -04:00
vtgate.proto Add option to specify heartbeat frequency 2021-06-21 12:07:38 +02:00
vtgateservice.proto proto changes for prepare and closeSession vtgate api 2021-05-31 13:05:02 +05:30
vtrpc.proto
vttest.proto
vttime.proto proto: regenerate with gogo/protobuf 2021-02-22 17:09:51 +01:00
vtworkerdata.proto
vtworkerservice.proto
workflow.proto

README.md

Vitess Protobuf Definitions

This directory contains all Vitess protobuf definitions.

Our protobuf messages are both used as wire format (e.g. query.proto) and for storage (e.g. topodata.proto).

RPC messages and service definitions are in separate files (e.g. vtgate.proto and vtgateservice.proto) on purpose because our internal deployment does not use gRPC.

Style Guide

Before creating new messages or services, please make yourself familiar with the style of the existing definitions first.

Additionally, new definitions must adhere to the Google Cloud API Design Guide: https://cloud.google.com/apis/design/

Comments

We are more strict than the Design Guide on the format for comments. Similar to comments for Go types or fields, protobuf comments must start with the name. For example:

// TabletAlias is a globally unique tablet identifier.
message TabletAlias {
  // cell is the cell (or datacenter) the tablet is in.
  string cell = 1;
  ...
}

Note that the Design Guide also has the following ask:

If the field value is required, input only, output only, it must be documented at the start of the field description. By default, all fields and parameters are optional.

Here's an example which combines this ask with our stricter comments style:

// ExecuteKeyspaceIdsRequest is the payload to ExecuteKeyspaceIds.
message ExecuteKeyspaceIdsRequest {
  ...
  // Required. keyspace to target the query to.
  string keyspace = 4;
  ...
}

Note that most of our existing files (as of March 2017) do not have e.g. "Required." comments. Nonetheless, new files should follow this where applicable.