forked from vitessio/vitess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bsonrpc.go
32 lines (26 loc) · 849 Bytes
/
bsonrpc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright 2012, Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package proto
import (
mproto "github.com/youtube/vitess/go/mysql/proto"
"github.com/youtube/vitess/go/vt/key"
)
// This file contains the data structures used by bson rpc for update stream.
// UpdateStreamRequest is used to make a request for ServeUpdateStream.
type UpdateStreamRequest struct {
Position string
}
// KeyRangeRequest is used to make a request for StreamKeyRange.
type KeyRangeRequest struct {
Position string
KeyspaceIdType key.KeyspaceIdType
KeyRange key.KeyRange
Charset *mproto.Charset
}
// TablesRequest is used to make a request for StreamTables.
type TablesRequest struct {
Position string
Tables []string
Charset *mproto.Charset
}