vitess-gh/proto
Anthony Yeh 8be2b63468 mysqlctl: Execute RefreshConfig remotely if requested.
This makes RefreshConfig match the behavior of ReinitConfig.
Since the initial InitConfig happens in mysqlctld, it's important that
vttablet requests mysqlctld to regenerate config remotely, or else it
may not use the same settings.
2018-02-02 21:10:24 -08:00
..
README.md proto: Add README.md to document our required style guide. 2017-03-23 19:14:34 +01:00
automation.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
automationservice.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
binlogdata.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
binlogservice.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
logutil.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
mysqlctl.proto mysqlctl: Execute RefreshConfig remotely if requested. 2018-02-02 21:10:24 -08:00
query.proto Proto changes for aggregate stats. 2018-01-12 10:33:09 -08:00
queryservice.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
replicationdata.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
tableacl.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
tabletmanagerdata.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
tabletmanagerservice.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
throttlerdata.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
throttlerservice.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
topodata.proto doc updates 2017-12-13 17:04:15 -08:00
vschema.proto Initial commit for multi column index 2017-12-27 22:09:57 -08:00
vtctldata.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
vtctlservice.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
vtgate.proto messages: MessageAckKeyspaceIds 2017-05-25 13:38:11 -07:00
vtgateservice.proto messages: MessageAckKeyspaceIds 2017-05-25 13:38:11 -07:00
vtrpc.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
vttest.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
vtworkerdata.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
vtworkerservice.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00
workflow.proto license: BSD->Apache v2.0 2017-05-06 00:38:56 -07:00

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.