psdbconnectv1alpha1

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 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",
	}
	TabletType_value = map[string]int32{
		"replica": 0,
		"primary": 1,
	}
)

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 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 */
	// contains filtered or unexported fields
}

func (*SyncRequest) Descriptor deprecated

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

Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.

func (*SyncRequest) GetCursor

func (x *SyncRequest) GetCursor() *TableCursor

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"`
	// 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) GetError

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

func (*SyncResponse) GetResult

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

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 (
	TabletType_replica TabletType = 0
	TabletType_primary TabletType = 1
)

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.

Jump to

Keyboard shortcuts

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