psdbconnectv1alpha1

package
v1.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TabletType_name = map[int32]string{
		0: "replica",
		1: "primary",
		2: "read_only",
	}
	TabletType_value = map[string]int32{
		"replica":   0,
		"primary":   1,
		"read_only": 2,
		"batch":     2,
	}
)

Enum value maps for TabletType.

View Source
var (
	ErrInvalidLength        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflow          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroup = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Connect_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "psdbconnect.v1alpha1.Connect",
	HandlerType: (*ConnectServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Sync",
			Handler:       _Connect_Sync_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "psdbconnect.v1alpha1.proto",
}

Connect_ServiceDesc is the grpc.ServiceDesc for Connect service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_psdbconnect_v1alpha1_proto protoreflect.FileDescriptor

Functions

func RegisterConnectServer

func RegisterConnectServer(s grpc.ServiceRegistrar, srv ConnectServer)

Types

type ConnectClient

type ConnectClient interface {
	Sync(ctx context.Context, in *SyncRequest, opts ...grpc.CallOption) (Connect_SyncClient, error)
}

ConnectClient is the client API for Connect service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewConnectClient

func NewConnectClient(cc grpc.ClientConnInterface) ConnectClient

type ConnectServer

type ConnectServer interface {
	Sync(*SyncRequest, Connect_SyncServer) error
}

ConnectServer is the server API for Connect service. All implementations should embed UnimplementedConnectServer for forward compatibility

type Connect_SyncClient

type Connect_SyncClient interface {
	Recv() (*SyncResponse, error)
	grpc.ClientStream
}

type Connect_SyncServer

type Connect_SyncServer interface {
	Send(*SyncResponse) error
	grpc.ServerStream
}

type DeletedRow added in v1.16.0

type DeletedRow struct {
	Result *query.QueryResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletedRow) Descriptor deprecated added in v1.16.0

func (*DeletedRow) Descriptor() ([]byte, []int)

Deprecated: Use DeletedRow.ProtoReflect.Descriptor instead.

func (*DeletedRow) GetResult added in v1.16.0

func (x *DeletedRow) GetResult() *query.QueryResult

func (*DeletedRow) MarshalToSizedBufferVT added in v1.16.0

func (m *DeletedRow) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*DeletedRow) MarshalToVT added in v1.16.0

func (m *DeletedRow) MarshalToVT(dAtA []byte) (int, error)

func (*DeletedRow) MarshalVT added in v1.16.0

func (m *DeletedRow) MarshalVT() (dAtA []byte, err error)

func (*DeletedRow) ProtoMessage added in v1.16.0

func (*DeletedRow) ProtoMessage()

func (*DeletedRow) ProtoReflect added in v1.16.0

func (x *DeletedRow) ProtoReflect() protoreflect.Message

func (*DeletedRow) Reset added in v1.16.0

func (x *DeletedRow) Reset()

func (*DeletedRow) SizeVT added in v1.16.0

func (m *DeletedRow) SizeVT() (n int)

func (*DeletedRow) String added in v1.16.0

func (x *DeletedRow) String() string

func (*DeletedRow) UnmarshalVT added in v1.16.0

func (m *DeletedRow) UnmarshalVT(dAtA []byte) error

type SyncRequest

type SyncRequest struct {
	TableName      string       `protobuf:"bytes,1,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
	Cursor         *TableCursor `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	TabletType     TabletType   `` /* 129-byte string literal not displayed */
	IncludeInserts bool         `protobuf:"varint,4,opt,name=include_inserts,json=includeInserts,proto3" json:"include_inserts,omitempty"`
	IncludeUpdates bool         `protobuf:"varint,5,opt,name=include_updates,json=includeUpdates,proto3" json:"include_updates,omitempty"`
	IncludeDeletes bool         `protobuf:"varint,6,opt,name=include_deletes,json=includeDeletes,proto3" json:"include_deletes,omitempty"`
	Columns        []string     `protobuf:"bytes,7,rep,name=columns,proto3" json:"columns,omitempty"`
	// if specified, these cells are used to pick source tablets from.
	// defaults to the cell of the vtgate serving the VStream API.
	Cells []string `protobuf:"bytes,8,rep,name=cells,proto3" json:"cells,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncRequest) Descriptor deprecated

func (*SyncRequest) Descriptor() ([]byte, []int)

Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.

func (*SyncRequest) GetCells added in v1.17.0

func (x *SyncRequest) GetCells() []string

func (*SyncRequest) GetColumns added in v1.16.0

func (x *SyncRequest) GetColumns() []string

func (*SyncRequest) GetCursor

func (x *SyncRequest) GetCursor() *TableCursor

func (*SyncRequest) GetIncludeDeletes added in v1.16.0

func (x *SyncRequest) GetIncludeDeletes() bool

func (*SyncRequest) GetIncludeInserts added in v1.16.0

func (x *SyncRequest) GetIncludeInserts() bool

func (*SyncRequest) GetIncludeUpdates added in v1.16.0

func (x *SyncRequest) GetIncludeUpdates() bool

func (*SyncRequest) GetTableName

func (x *SyncRequest) GetTableName() string

func (*SyncRequest) GetTabletType

func (x *SyncRequest) GetTabletType() TabletType

func (*SyncRequest) MarshalToSizedBufferVT

func (m *SyncRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SyncRequest) MarshalToVT

func (m *SyncRequest) MarshalToVT(dAtA []byte) (int, error)

func (*SyncRequest) MarshalVT

func (m *SyncRequest) MarshalVT() (dAtA []byte, err error)

func (*SyncRequest) ProtoMessage

func (*SyncRequest) ProtoMessage()

func (*SyncRequest) ProtoReflect

func (x *SyncRequest) ProtoReflect() protoreflect.Message

func (*SyncRequest) Reset

func (x *SyncRequest) Reset()

func (*SyncRequest) SizeVT

func (m *SyncRequest) SizeVT() (n int)

func (*SyncRequest) String

func (x *SyncRequest) String() string

func (*SyncRequest) UnmarshalVT

func (m *SyncRequest) UnmarshalVT(dAtA []byte) error

type SyncResponse

type SyncResponse struct {
	Result  []*query.QueryResult `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"`
	Cursor  *TableCursor         `protobuf:"bytes,2,opt,name=cursor,proto3" json:"cursor,omitempty"`
	Error   *vtrpc.RPCError      `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
	Deletes []*DeletedRow        `protobuf:"bytes,4,rep,name=deletes,proto3" json:"deletes,omitempty"`
	Updates []*UpdatedRow        `protobuf:"bytes,5,rep,name=updates,proto3" json:"updates,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncResponse) Descriptor deprecated

func (*SyncResponse) Descriptor() ([]byte, []int)

Deprecated: Use SyncResponse.ProtoReflect.Descriptor instead.

func (*SyncResponse) GetCursor

func (x *SyncResponse) GetCursor() *TableCursor

func (*SyncResponse) GetDeletes added in v1.16.0

func (x *SyncResponse) GetDeletes() []*DeletedRow

func (*SyncResponse) GetError

func (x *SyncResponse) GetError() *vtrpc.RPCError

func (*SyncResponse) GetResult

func (x *SyncResponse) GetResult() []*query.QueryResult

func (*SyncResponse) GetUpdates added in v1.16.0

func (x *SyncResponse) GetUpdates() []*UpdatedRow

func (*SyncResponse) MarshalToSizedBufferVT

func (m *SyncResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*SyncResponse) MarshalToVT

func (m *SyncResponse) MarshalToVT(dAtA []byte) (int, error)

func (*SyncResponse) MarshalVT

func (m *SyncResponse) MarshalVT() (dAtA []byte, err error)

func (*SyncResponse) ProtoMessage

func (*SyncResponse) ProtoMessage()

func (*SyncResponse) ProtoReflect

func (x *SyncResponse) ProtoReflect() protoreflect.Message

func (*SyncResponse) Reset

func (x *SyncResponse) Reset()

func (*SyncResponse) SizeVT

func (m *SyncResponse) SizeVT() (n int)

func (*SyncResponse) String

func (x *SyncResponse) String() string

func (*SyncResponse) UnmarshalVT

func (m *SyncResponse) UnmarshalVT(dAtA []byte) error

type TableCursor

type TableCursor struct {
	Shard       string             `protobuf:"bytes,1,opt,name=shard,proto3" json:"shard,omitempty"`
	Keyspace    string             `protobuf:"bytes,2,opt,name=keyspace,proto3" json:"keyspace,omitempty"`
	Position    string             `protobuf:"bytes,3,opt,name=position,proto3" json:"position,omitempty"`
	LastKnownPk *query.QueryResult `protobuf:"bytes,4,opt,name=last_known_pk,json=lastKnownPk,proto3" json:"last_known_pk,omitempty"`
	// contains filtered or unexported fields
}

func (*TableCursor) Descriptor deprecated

func (*TableCursor) Descriptor() ([]byte, []int)

Deprecated: Use TableCursor.ProtoReflect.Descriptor instead.

func (*TableCursor) GetKeyspace

func (x *TableCursor) GetKeyspace() string

func (*TableCursor) GetLastKnownPk

func (x *TableCursor) GetLastKnownPk() *query.QueryResult

func (*TableCursor) GetPosition

func (x *TableCursor) GetPosition() string

func (*TableCursor) GetShard

func (x *TableCursor) GetShard() string

func (*TableCursor) MarshalToSizedBufferVT

func (m *TableCursor) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*TableCursor) MarshalToVT

func (m *TableCursor) MarshalToVT(dAtA []byte) (int, error)

func (*TableCursor) MarshalVT

func (m *TableCursor) MarshalVT() (dAtA []byte, err error)

func (*TableCursor) ProtoMessage

func (*TableCursor) ProtoMessage()

func (*TableCursor) ProtoReflect

func (x *TableCursor) ProtoReflect() protoreflect.Message

func (*TableCursor) Reset

func (x *TableCursor) Reset()

func (*TableCursor) SizeVT

func (m *TableCursor) SizeVT() (n int)

func (*TableCursor) String

func (x *TableCursor) String() string

func (*TableCursor) UnmarshalVT

func (m *TableCursor) UnmarshalVT(dAtA []byte) error

type TabletType

type TabletType int32
const (
	// REPLICA replicates from primary. It is used to serve live traffic.
	// A REPLICA can be promoted to PRIMARY. A demoted PRIMARY will go to REPLICA.
	TabletType_replica TabletType = 0
	// PRIMARY is the primary server for the shard. Only PRIMARY allows DMLs.
	TabletType_primary TabletType = 1
	// RDONLY (old name) / BATCH (new name) is used to serve traffic for
	// long-running jobs. It is a separate type from REPLICA so
	// long-running queries don't affect web-like traffic.
	TabletType_read_only TabletType = 2
	TabletType_batch     TabletType = 2
)

func (TabletType) Descriptor

func (TabletType) Descriptor() protoreflect.EnumDescriptor

func (TabletType) Enum

func (x TabletType) Enum() *TabletType

func (TabletType) EnumDescriptor deprecated

func (TabletType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TabletType.Descriptor instead.

func (TabletType) Number

func (x TabletType) Number() protoreflect.EnumNumber

func (TabletType) String

func (x TabletType) String() string

func (TabletType) Type

type UnimplementedConnectServer

type UnimplementedConnectServer struct {
}

UnimplementedConnectServer should be embedded to have forward compatible implementations.

func (UnimplementedConnectServer) Sync

type UnsafeConnectServer

type UnsafeConnectServer interface {
	// contains filtered or unexported methods
}

UnsafeConnectServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConnectServer will result in compilation errors.

type UpdatedRow added in v1.16.0

type UpdatedRow struct {
	Before *query.QueryResult `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"`
	After  *query.QueryResult `protobuf:"bytes,2,opt,name=after,proto3" json:"after,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatedRow) Descriptor deprecated added in v1.16.0

func (*UpdatedRow) Descriptor() ([]byte, []int)

Deprecated: Use UpdatedRow.ProtoReflect.Descriptor instead.

func (*UpdatedRow) GetAfter added in v1.16.0

func (x *UpdatedRow) GetAfter() *query.QueryResult

func (*UpdatedRow) GetBefore added in v1.16.0

func (x *UpdatedRow) GetBefore() *query.QueryResult

func (*UpdatedRow) MarshalToSizedBufferVT added in v1.16.0

func (m *UpdatedRow) MarshalToSizedBufferVT(dAtA []byte) (int, error)

func (*UpdatedRow) MarshalToVT added in v1.16.0

func (m *UpdatedRow) MarshalToVT(dAtA []byte) (int, error)

func (*UpdatedRow) MarshalVT added in v1.16.0

func (m *UpdatedRow) MarshalVT() (dAtA []byte, err error)

func (*UpdatedRow) ProtoMessage added in v1.16.0

func (*UpdatedRow) ProtoMessage()

func (*UpdatedRow) ProtoReflect added in v1.16.0

func (x *UpdatedRow) ProtoReflect() protoreflect.Message

func (*UpdatedRow) Reset added in v1.16.0

func (x *UpdatedRow) Reset()

func (*UpdatedRow) SizeVT added in v1.16.0

func (m *UpdatedRow) SizeVT() (n int)

func (*UpdatedRow) String added in v1.16.0

func (x *UpdatedRow) String() string

func (*UpdatedRow) UnmarshalVT added in v1.16.0

func (m *UpdatedRow) UnmarshalVT(dAtA []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL