Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterParkerServer(s grpc.ServiceRegistrar, srv ParkerServer)
- type Entry
- func (*Entry) Descriptor() ([]byte, []int)deprecated
- func (x *Entry) GetEtag() string
- func (x *Entry) GetKey() string
- func (x *Entry) GetLastModified() int64
- func (x *Entry) GetSize() int64
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (x *Entry) String() string
- type Key
- func (*Key) Descriptor() ([]byte, []int)deprecated
- func (x *Key) GetBytesValue() []byte
- func (x *Key) GetInt32Value() int32
- func (x *Key) GetInt64Value() int64
- func (m *Key) GetKind() isKey_Kind
- func (x *Key) GetStringValue() string
- func (*Key) ProtoMessage()
- func (x *Key) ProtoReflect() protoreflect.Message
- func (x *Key) Reset()
- func (x *Key) String() string
- type Key_BytesValue
- type Key_Int32Value
- type Key_Int64Value
- type Key_StringValue
- type ListValue
- type LookupRequest
- func (*LookupRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LookupRequest) GetAccount() string
- func (x *LookupRequest) GetColumns() []string
- func (x *LookupRequest) GetKey() *Key
- func (x *LookupRequest) GetPartitions() []*Partition
- func (x *LookupRequest) GetSnapshot() int64
- func (x *LookupRequest) GetTable() string
- func (*LookupRequest) ProtoMessage()
- func (x *LookupRequest) ProtoReflect() protoreflect.Message
- func (x *LookupRequest) Reset()
- func (x *LookupRequest) String() string
- type LookupResponse
- func (*LookupResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LookupResponse) GetRecord() *RecordValue
- func (x *LookupResponse) GetSnapshot() int64
- func (*LookupResponse) ProtoMessage()
- func (x *LookupResponse) ProtoReflect() protoreflect.Message
- func (x *LookupResponse) Reset()
- func (x *LookupResponse) String() string
- type ParkerClient
- type ParkerServer
- type Partition
- func (*Partition) Descriptor() ([]byte, []int)deprecated
- func (x *Partition) GetPartitionKey() string
- func (x *Partition) GetPartitionValue() string
- func (*Partition) ProtoMessage()
- func (x *Partition) ProtoReflect() protoreflect.Message
- func (x *Partition) Reset()
- func (x *Partition) String() string
- type Range
- func (*Range) Descriptor() ([]byte, []int)deprecated
- func (x *Range) GetLowerBound() *Key
- func (x *Range) GetPartitions() []*Partition
- func (x *Range) GetUpperBound() *Key
- func (*Range) ProtoMessage()
- func (x *Range) ProtoReflect() protoreflect.Message
- func (x *Range) Reset()
- func (x *Range) String() string
- type RecordValue
- type S3Access
- func (*S3Access) Descriptor() ([]byte, []int)deprecated
- func (x *S3Access) GetAccessKey() string
- func (x *S3Access) GetBucket() string
- func (x *S3Access) GetEndpoint() string
- func (x *S3Access) GetRegion() string
- func (x *S3Access) GetSecretKey() string
- func (*S3Access) ProtoMessage()
- func (x *S3Access) ProtoReflect() protoreflect.Message
- func (x *S3Access) Reset()
- func (x *S3Access) String() string
- type UnimplementedParkerServer
- type UnsafeParkerServer
- type Value
- func (*Value) Descriptor() ([]byte, []int)deprecated
- func (x *Value) GetBoolValue() bool
- func (x *Value) GetBytesValue() []byte
- func (x *Value) GetDoubleValue() float64
- func (x *Value) GetFloatValue() float32
- func (x *Value) GetInt32Value() int32
- func (x *Value) GetInt64Value() int64
- func (m *Value) GetKind() isValue_Kind
- func (x *Value) GetListValue() *ListValue
- func (x *Value) GetRecordValue() *RecordValue
- func (x *Value) GetStringValue() string
- func (*Value) ProtoMessage()
- func (x *Value) ProtoReflect() protoreflect.Message
- func (x *Value) Reset()
- func (x *Value) String() string
- type Value_BoolValue
- type Value_BytesValue
- type Value_DoubleValue
- type Value_FloatValue
- type Value_Int32Value
- type Value_Int64Value
- type Value_ListValue
- type Value_RecordValue
- type Value_StringValue
Constants ¶
const (
Parker_Lookup_FullMethodName = "/parker_server.Parker/Lookup"
)
Variables ¶
var File_common_proto protoreflect.FileDescriptor
var File_parker_proto protoreflect.FileDescriptor
var Parker_ServiceDesc = grpc.ServiceDesc{ ServiceName: "parker_server.Parker", HandlerType: (*ParkerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Lookup", Handler: _Parker_Lookup_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "parker.proto", }
Parker_ServiceDesc is the grpc.ServiceDesc for Parker service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterParkerServer ¶
func RegisterParkerServer(s grpc.ServiceRegistrar, srv ParkerServer)
Types ¶
type Entry ¶
type Entry struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` LastModified int64 `protobuf:"varint,3,opt,name=last_modified,json=lastModified,proto3" json:"last_modified,omitempty"` Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"` // contains filtered or unexported fields }
//////////////////////////////////////////////
func (*Entry) Descriptor
deprecated
func (*Entry) GetLastModified ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
type Key ¶
type Key struct { // Types that are assignable to Kind: // // *Key_Int32Value // *Key_Int64Value // *Key_BytesValue // *Key_StringValue Kind isKey_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
///////////////////////// key value definition /////////////////////////
func (*Key) Descriptor
deprecated
func (*Key) GetBytesValue ¶
func (*Key) GetInt32Value ¶
func (*Key) GetInt64Value ¶
func (*Key) GetStringValue ¶
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶
func (x *Key) ProtoReflect() protoreflect.Message
type Key_BytesValue ¶
type Key_BytesValue struct {
BytesValue []byte `protobuf:"bytes,3,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
}
type Key_Int32Value ¶
type Key_Int32Value struct {
Int32Value int32 `protobuf:"varint,1,opt,name=int32_value,json=int32Value,proto3,oneof"`
}
type Key_Int64Value ¶
type Key_Int64Value struct {
Int64Value int64 `protobuf:"varint,2,opt,name=int64_value,json=int64Value,proto3,oneof"`
}
type Key_StringValue ¶
type Key_StringValue struct {
StringValue string `protobuf:"bytes,4,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type ListValue ¶
type ListValue struct { Values []*Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*ListValue) Descriptor
deprecated
func (*ListValue) ProtoMessage ¶
func (*ListValue) ProtoMessage()
func (*ListValue) ProtoReflect ¶
func (x *ListValue) ProtoReflect() protoreflect.Message
type LookupRequest ¶
type LookupRequest struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"` Snapshot int64 `protobuf:"varint,4,opt,name=snapshot,proto3" json:"snapshot,omitempty"` // Optional, in case customers want previous version Partitions []*Partition `protobuf:"bytes,5,rep,name=partitions,proto3" json:"partitions,omitempty"` Key *Key `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` Columns []string `protobuf:"bytes,7,rep,name=columns,proto3" json:"columns,omitempty"` // projection // contains filtered or unexported fields }
func (*LookupRequest) Descriptor
deprecated
func (*LookupRequest) Descriptor() ([]byte, []int)
Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.
func (*LookupRequest) GetAccount ¶
func (x *LookupRequest) GetAccount() string
func (*LookupRequest) GetColumns ¶
func (x *LookupRequest) GetColumns() []string
func (*LookupRequest) GetKey ¶
func (x *LookupRequest) GetKey() *Key
func (*LookupRequest) GetPartitions ¶
func (x *LookupRequest) GetPartitions() []*Partition
func (*LookupRequest) GetSnapshot ¶
func (x *LookupRequest) GetSnapshot() int64
func (*LookupRequest) GetTable ¶
func (x *LookupRequest) GetTable() string
func (*LookupRequest) ProtoMessage ¶
func (*LookupRequest) ProtoMessage()
func (*LookupRequest) ProtoReflect ¶
func (x *LookupRequest) ProtoReflect() protoreflect.Message
func (*LookupRequest) Reset ¶
func (x *LookupRequest) Reset()
func (*LookupRequest) String ¶
func (x *LookupRequest) String() string
type LookupResponse ¶
type LookupResponse struct { Snapshot int64 `protobuf:"varint,1,opt,name=snapshot,proto3" json:"snapshot,omitempty"` Record *RecordValue `protobuf:"bytes,2,opt,name=record,proto3" json:"record,omitempty"` // contains filtered or unexported fields }
func (*LookupResponse) Descriptor
deprecated
func (*LookupResponse) Descriptor() ([]byte, []int)
Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.
func (*LookupResponse) GetRecord ¶
func (x *LookupResponse) GetRecord() *RecordValue
func (*LookupResponse) GetSnapshot ¶
func (x *LookupResponse) GetSnapshot() int64
func (*LookupResponse) ProtoMessage ¶
func (*LookupResponse) ProtoMessage()
func (*LookupResponse) ProtoReflect ¶
func (x *LookupResponse) ProtoReflect() protoreflect.Message
func (*LookupResponse) Reset ¶
func (x *LookupResponse) Reset()
func (*LookupResponse) String ¶
func (x *LookupResponse) String() string
type ParkerClient ¶
type ParkerClient interface { // / Gateway => Parker Lookup(ctx context.Context, in *LookupRequest, opts ...grpc.CallOption) (*LookupResponse, error) }
ParkerClient is the client API for Parker 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 NewParkerClient ¶
func NewParkerClient(cc grpc.ClientConnInterface) ParkerClient
type ParkerServer ¶
type ParkerServer interface { // / Gateway => Parker Lookup(context.Context, *LookupRequest) (*LookupResponse, error) // contains filtered or unexported methods }
ParkerServer is the server API for Parker service. All implementations must embed UnimplementedParkerServer for forward compatibility.
type Partition ¶
type Partition struct { PartitionKey string `protobuf:"bytes,1,opt,name=partition_key,json=partitionKey,proto3" json:"partition_key,omitempty"` PartitionValue string `protobuf:"bytes,2,opt,name=partition_value,json=partitionValue,proto3" json:"partition_value,omitempty"` // contains filtered or unexported fields }
func (*Partition) Descriptor
deprecated
func (*Partition) GetPartitionKey ¶
func (*Partition) GetPartitionValue ¶
func (*Partition) ProtoMessage ¶
func (*Partition) ProtoMessage()
func (*Partition) ProtoReflect ¶
func (x *Partition) ProtoReflect() protoreflect.Message
type Range ¶
type Range struct { Partitions []*Partition `protobuf:"bytes,1,rep,name=partitions,proto3" json:"partitions,omitempty"` // any non-time partitions after time partitions LowerBound *Key `protobuf:"bytes,2,opt,name=lower_bound,json=lowerBound,proto3" json:"lower_bound,omitempty"` UpperBound *Key `protobuf:"bytes,3,opt,name=upper_bound,json=upperBound,proto3" json:"upper_bound,omitempty"` // contains filtered or unexported fields }
//////////////////////////////////////////////
func (*Range) Descriptor
deprecated
func (*Range) GetLowerBound ¶
func (*Range) GetPartitions ¶
func (*Range) GetUpperBound ¶
func (*Range) ProtoMessage ¶
func (*Range) ProtoMessage()
func (*Range) ProtoReflect ¶
func (x *Range) ProtoReflect() protoreflect.Message
type RecordValue ¶
type RecordValue struct { Fields map[string]*Value `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RecordValue) Descriptor
deprecated
func (*RecordValue) Descriptor() ([]byte, []int)
Deprecated: Use RecordValue.ProtoReflect.Descriptor instead.
func (*RecordValue) GetFields ¶
func (x *RecordValue) GetFields() map[string]*Value
func (*RecordValue) ProtoMessage ¶
func (*RecordValue) ProtoMessage()
func (*RecordValue) ProtoReflect ¶
func (x *RecordValue) ProtoReflect() protoreflect.Message
func (*RecordValue) Reset ¶
func (x *RecordValue) Reset()
func (*RecordValue) String ¶
func (x *RecordValue) String() string
type S3Access ¶
type S3Access struct { Bucket string `protobuf:"bytes,1,opt,name=bucket,proto3" json:"bucket,omitempty"` Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` AccessKey string `protobuf:"bytes,3,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"` SecretKey string `protobuf:"bytes,4,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"` Endpoint string `protobuf:"bytes,5,opt,name=endpoint,proto3" json:"endpoint,omitempty"` // contains filtered or unexported fields }
func (*S3Access) Descriptor
deprecated
func (*S3Access) GetAccessKey ¶
func (*S3Access) GetEndpoint ¶
func (*S3Access) GetSecretKey ¶
func (*S3Access) ProtoMessage ¶
func (*S3Access) ProtoMessage()
func (*S3Access) ProtoReflect ¶
func (x *S3Access) ProtoReflect() protoreflect.Message
type UnimplementedParkerServer ¶
type UnimplementedParkerServer struct{}
UnimplementedParkerServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedParkerServer) Lookup ¶
func (UnimplementedParkerServer) Lookup(context.Context, *LookupRequest) (*LookupResponse, error)
type UnsafeParkerServer ¶
type UnsafeParkerServer interface {
// contains filtered or unexported methods
}
UnsafeParkerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ParkerServer will result in compilation errors.
type Value ¶
type Value struct { // Types that are assignable to Kind: // // *Value_BoolValue // *Value_Int32Value // *Value_Int64Value // *Value_FloatValue // *Value_DoubleValue // *Value_BytesValue // *Value_StringValue // *Value_ListValue // *Value_RecordValue Kind isValue_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
func (*Value) Descriptor
deprecated
func (*Value) GetBoolValue ¶
func (*Value) GetBytesValue ¶
func (*Value) GetDoubleValue ¶
func (*Value) GetFloatValue ¶
func (*Value) GetInt32Value ¶
func (*Value) GetInt64Value ¶
func (*Value) GetListValue ¶
func (*Value) GetRecordValue ¶
func (x *Value) GetRecordValue() *RecordValue
func (*Value) GetStringValue ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) ProtoReflect ¶
func (x *Value) ProtoReflect() protoreflect.Message
type Value_BoolValue ¶
type Value_BoolValue struct {
BoolValue bool `protobuf:"varint,1,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
type Value_BytesValue ¶
type Value_BytesValue struct {
BytesValue []byte `protobuf:"bytes,6,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
}
type Value_DoubleValue ¶
type Value_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type Value_FloatValue ¶
type Value_FloatValue struct {
FloatValue float32 `protobuf:"fixed32,4,opt,name=float_value,json=floatValue,proto3,oneof"`
}
type Value_Int32Value ¶
type Value_Int32Value struct {
Int32Value int32 `protobuf:"varint,2,opt,name=int32_value,json=int32Value,proto3,oneof"`
}
type Value_Int64Value ¶
type Value_Int64Value struct {
Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof"`
}
type Value_ListValue ¶
type Value_ListValue struct {
ListValue *ListValue `protobuf:"bytes,14,opt,name=list_value,json=listValue,proto3,oneof"`
}
type Value_RecordValue ¶
type Value_RecordValue struct {
RecordValue *RecordValue `protobuf:"bytes,15,opt,name=record_value,json=recordValue,proto3,oneof"`
}
type Value_StringValue ¶
type Value_StringValue struct {
StringValue string `protobuf:"bytes,7,opt,name=string_value,json=stringValue,proto3,oneof"`
}