Documentation ¶
Overview ¶
Package vtgateservice provides to interface definition for the vtgate service
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VTGateService ¶
type VTGateService interface { // V3 API Execute(ctx context.Context, session *vtgatepb.Session, sql string, bindVariables map[string]*querypb.BindVariable) (*vtgatepb.Session, *sqltypes.Result, error) ExecuteBatch(ctx context.Context, session *vtgatepb.Session, sqlList []string, bindVariablesList []map[string]*querypb.BindVariable) (*vtgatepb.Session, []sqltypes.QueryResponse, error) StreamExecute(ctx context.Context, session *vtgatepb.Session, sql string, bindVariables map[string]*querypb.BindVariable, callback func(*sqltypes.Result) error) error // 2PC support ResolveTransaction(ctx context.Context, dtid string) error // Update Stream methods VStream(ctx context.Context, tabletType topodatapb.TabletType, vgtid *binlogdatapb.VGtid, filter *binlogdatapb.Filter, send func([]*binlogdatapb.VEvent) error) error // HandlePanic should be called with defer at the beginning of each // RPC implementation method, before calling any of the previous methods HandlePanic(err *error) }
VTGateService is the interface implemented by the VTGate service, that RPC server implementations will call.
Click to show internal directories.
Click to hide internal directories.