Documentation ¶
Index ¶
- Variables
- func RegisterQueryKitServer(s *grpc.Server, srv QueryKitServer)
- type ArrayValue
- func (*ArrayValue) Descriptor() ([]byte, []int)
- func (m *ArrayValue) GetElements() []*Value
- func (*ArrayValue) ProtoMessage()
- func (m *ArrayValue) Reset()
- func (m *ArrayValue) String() string
- func (m *ArrayValue) XXX_DiscardUnknown()
- func (m *ArrayValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArrayValue) XXX_Merge(src proto.Message)
- func (m *ArrayValue) XXX_Size() int
- func (m *ArrayValue) XXX_Unmarshal(b []byte) error
- type Condition
- func (*Condition) Descriptor() ([]byte, []int)
- func (m *Condition) GetConditions() []*Condition
- func (m *Condition) GetName() string
- func (m *Condition) GetOperator() Operator
- func (m *Condition) GetValue() *Value
- func (*Condition) ProtoMessage()
- func (m *Condition) Reset()
- func (m *Condition) String() string
- func (m *Condition) XXX_DiscardUnknown()
- func (m *Condition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Condition) XXX_Merge(src proto.Message)
- func (m *Condition) XXX_Size() int
- func (m *Condition) XXX_Unmarshal(b []byte) error
- type DataType
- type Field
- func (*Field) Descriptor() ([]byte, []int)
- func (m *Field) GetName() string
- func (m *Field) GetValue() *Value
- func (*Field) ProtoMessage()
- func (m *Field) Reset()
- func (m *Field) String() string
- func (m *Field) XXX_DiscardUnknown()
- func (m *Field) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Field) XXX_Merge(src proto.Message)
- func (m *Field) XXX_Size() int
- func (m *Field) XXX_Unmarshal(b []byte) error
- type MapValue
- func (*MapValue) Descriptor() ([]byte, []int)
- func (m *MapValue) GetFields() []*Field
- func (*MapValue) ProtoMessage()
- func (m *MapValue) Reset()
- func (m *MapValue) String() string
- func (m *MapValue) XXX_DiscardUnknown()
- func (m *MapValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MapValue) XXX_Merge(src proto.Message)
- func (m *MapValue) XXX_Size() int
- func (m *MapValue) XXX_Unmarshal(b []byte) error
- type Operator
- type QueryKitClient
- type QueryKitServer
- type QueryReply
- func (*QueryReply) Descriptor() ([]byte, []int)
- func (m *QueryReply) GetReason() string
- func (m *QueryReply) GetRecords() []*Record
- func (m *QueryReply) GetSuccess() bool
- func (*QueryReply) ProtoMessage()
- func (m *QueryReply) Reset()
- func (m *QueryReply) String() string
- func (m *QueryReply) XXX_DiscardUnknown()
- func (m *QueryReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryReply) XXX_Merge(src proto.Message)
- func (m *QueryReply) XXX_Size() int
- func (m *QueryReply) XXX_Unmarshal(b []byte) error
- type QueryRequest
- func (*QueryRequest) Descriptor() ([]byte, []int)
- func (m *QueryRequest) GetCondition() *Condition
- func (m *QueryRequest) GetDescending() bool
- func (m *QueryRequest) GetLimit() int64
- func (m *QueryRequest) GetOffset() int64
- func (m *QueryRequest) GetOrderBy() string
- func (m *QueryRequest) GetTable() string
- func (*QueryRequest) ProtoMessage()
- func (m *QueryRequest) Reset()
- func (m *QueryRequest) String() string
- func (m *QueryRequest) XXX_DiscardUnknown()
- func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRequest) XXX_Merge(src proto.Message)
- func (m *QueryRequest) XXX_Size() int
- func (m *QueryRequest) XXX_Unmarshal(b []byte) error
- type Record
- func (*Record) Descriptor() ([]byte, []int)
- func (m *Record) GetFields() []*Field
- func (*Record) ProtoMessage()
- func (m *Record) Reset()
- func (m *Record) String() string
- func (m *Record) XXX_DiscardUnknown()
- func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Record) XXX_Merge(src proto.Message)
- func (m *Record) XXX_Size() int
- func (m *Record) XXX_Unmarshal(b []byte) error
- type UnimplementedQueryKitServer
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) GetArray() *ArrayValue
- func (m *Value) GetMap() *MapValue
- func (m *Value) GetType() DataType
- func (m *Value) GetValue() []byte
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) String() string
- func (m *Value) XXX_DiscardUnknown()
- func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Value) XXX_Merge(src proto.Message)
- func (m *Value) XXX_Size() int
- func (m *Value) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DataType_name = map[int32]string{
0: "BOOLEAN",
1: "BINARY",
2: "STRING",
3: "UINT64",
4: "INT64",
5: "FLOAT64",
6: "ARRAY",
7: "MAP",
}
View Source
var DataType_value = map[string]int32{
"BOOLEAN": 0,
"BINARY": 1,
"STRING": 2,
"UINT64": 3,
"INT64": 4,
"FLOAT64": 5,
"ARRAY": 6,
"MAP": 7,
}
View Source
var Operator_name = map[int32]string{
0: "EQUAL",
1: "GREATER_THAN",
2: "GREATER_EQUAL",
3: "LESS_THAN",
4: "LESS_EQUAL",
5: "AND",
6: "OR",
7: "NOT_EQUAL",
8: "IS_EXIST",
}
View Source
var Operator_value = map[string]int32{
"EQUAL": 0,
"GREATER_THAN": 1,
"GREATER_EQUAL": 2,
"LESS_THAN": 3,
"LESS_EQUAL": 4,
"AND": 5,
"OR": 6,
"NOT_EQUAL": 7,
"IS_EXIST": 8,
}
Functions ¶
func RegisterQueryKitServer ¶
func RegisterQueryKitServer(s *grpc.Server, srv QueryKitServer)
Types ¶
type ArrayValue ¶
type ArrayValue struct { Elements []*Value `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ArrayValue) Descriptor ¶
func (*ArrayValue) Descriptor() ([]byte, []int)
func (*ArrayValue) GetElements ¶
func (m *ArrayValue) GetElements() []*Value
func (*ArrayValue) ProtoMessage ¶
func (*ArrayValue) ProtoMessage()
func (*ArrayValue) Reset ¶
func (m *ArrayValue) Reset()
func (*ArrayValue) String ¶
func (m *ArrayValue) String() string
func (*ArrayValue) XXX_DiscardUnknown ¶
func (m *ArrayValue) XXX_DiscardUnknown()
func (*ArrayValue) XXX_Marshal ¶
func (m *ArrayValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArrayValue) XXX_Merge ¶
func (m *ArrayValue) XXX_Merge(src proto.Message)
func (*ArrayValue) XXX_Size ¶
func (m *ArrayValue) XXX_Size() int
func (*ArrayValue) XXX_Unmarshal ¶
func (m *ArrayValue) XXX_Unmarshal(b []byte) error
type Condition ¶
type Condition struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Operator Operator `protobuf:"varint,3,opt,name=operator,proto3,enum=gravity.api.querykit.Operator" json:"operator,omitempty"` Conditions []*Condition `protobuf:"bytes,4,rep,name=conditions,proto3" json:"conditions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Condition) Descriptor ¶
func (*Condition) GetConditions ¶
func (*Condition) GetOperator ¶
func (*Condition) ProtoMessage ¶
func (*Condition) ProtoMessage()
func (*Condition) XXX_DiscardUnknown ¶
func (m *Condition) XXX_DiscardUnknown()
func (*Condition) XXX_Marshal ¶
func (*Condition) XXX_Unmarshal ¶
type Field ¶
type Field struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value *Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Field) Descriptor ¶
func (*Field) ProtoMessage ¶
func (*Field) ProtoMessage()
func (*Field) XXX_DiscardUnknown ¶
func (m *Field) XXX_DiscardUnknown()
func (*Field) XXX_Marshal ¶
func (*Field) XXX_Unmarshal ¶
type MapValue ¶
type MapValue struct { Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MapValue) Descriptor ¶
func (*MapValue) ProtoMessage ¶
func (*MapValue) ProtoMessage()
func (*MapValue) XXX_DiscardUnknown ¶
func (m *MapValue) XXX_DiscardUnknown()
func (*MapValue) XXX_Marshal ¶
func (*MapValue) XXX_Unmarshal ¶
type QueryKitClient ¶
type QueryKitClient interface {
Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryReply, error)
}
QueryKitClient is the client API for QueryKit service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryKitClient ¶
func NewQueryKitClient(cc *grpc.ClientConn) QueryKitClient
type QueryKitServer ¶
type QueryKitServer interface {
Query(context.Context, *QueryRequest) (*QueryReply, error)
}
QueryKitServer is the server API for QueryKit service.
type QueryReply ¶
type QueryReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` Records []*Record `protobuf:"bytes,3,rep,name=records,proto3" json:"records,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryReply) Descriptor ¶
func (*QueryReply) Descriptor() ([]byte, []int)
func (*QueryReply) GetReason ¶
func (m *QueryReply) GetReason() string
func (*QueryReply) GetRecords ¶
func (m *QueryReply) GetRecords() []*Record
func (*QueryReply) GetSuccess ¶
func (m *QueryReply) GetSuccess() bool
func (*QueryReply) ProtoMessage ¶
func (*QueryReply) ProtoMessage()
func (*QueryReply) Reset ¶
func (m *QueryReply) Reset()
func (*QueryReply) String ¶
func (m *QueryReply) String() string
func (*QueryReply) XXX_DiscardUnknown ¶
func (m *QueryReply) XXX_DiscardUnknown()
func (*QueryReply) XXX_Marshal ¶
func (m *QueryReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryReply) XXX_Merge ¶
func (m *QueryReply) XXX_Merge(src proto.Message)
func (*QueryReply) XXX_Size ¶
func (m *QueryReply) XXX_Size() int
func (*QueryReply) XXX_Unmarshal ¶
func (m *QueryReply) XXX_Unmarshal(b []byte) error
type QueryRequest ¶
type QueryRequest struct { Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"` Condition *Condition `protobuf:"bytes,2,opt,name=condition,proto3" json:"condition,omitempty"` Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` OrderBy string `protobuf:"bytes,5,opt,name=orderBy,proto3" json:"orderBy,omitempty"` Descending bool `protobuf:"varint,6,opt,name=descending,proto3" json:"descending,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryRequest) Descriptor ¶
func (*QueryRequest) Descriptor() ([]byte, []int)
func (*QueryRequest) GetCondition ¶
func (m *QueryRequest) GetCondition() *Condition
func (*QueryRequest) GetDescending ¶
func (m *QueryRequest) GetDescending() bool
func (*QueryRequest) GetLimit ¶
func (m *QueryRequest) GetLimit() int64
func (*QueryRequest) GetOffset ¶
func (m *QueryRequest) GetOffset() int64
func (*QueryRequest) GetOrderBy ¶
func (m *QueryRequest) GetOrderBy() string
func (*QueryRequest) GetTable ¶
func (m *QueryRequest) GetTable() string
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) Reset ¶
func (m *QueryRequest) Reset()
func (*QueryRequest) String ¶
func (m *QueryRequest) String() string
func (*QueryRequest) XXX_DiscardUnknown ¶
func (m *QueryRequest) XXX_DiscardUnknown()
func (*QueryRequest) XXX_Marshal ¶
func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRequest) XXX_Merge ¶
func (m *QueryRequest) XXX_Merge(src proto.Message)
func (*QueryRequest) XXX_Size ¶
func (m *QueryRequest) XXX_Size() int
func (*QueryRequest) XXX_Unmarshal ¶
func (m *QueryRequest) XXX_Unmarshal(b []byte) error
type Record ¶
type Record struct { Fields []*Field `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Record) Descriptor ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) XXX_DiscardUnknown ¶
func (m *Record) XXX_DiscardUnknown()
func (*Record) XXX_Marshal ¶
func (*Record) XXX_Unmarshal ¶
type UnimplementedQueryKitServer ¶
type UnimplementedQueryKitServer struct { }
UnimplementedQueryKitServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryKitServer) Query ¶
func (*UnimplementedQueryKitServer) Query(ctx context.Context, req *QueryRequest) (*QueryReply, error)
type Value ¶
type Value struct { Type DataType `protobuf:"varint,1,opt,name=type,proto3,enum=gravity.api.querykit.DataType" json:"type,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Map *MapValue `protobuf:"bytes,3,opt,name=map,proto3" json:"map,omitempty"` Array *ArrayValue `protobuf:"bytes,4,opt,name=array,proto3" json:"array,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Value) Descriptor ¶
func (*Value) GetArray ¶
func (m *Value) GetArray() *ArrayValue
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
func (*Value) XXX_DiscardUnknown ¶
func (m *Value) XXX_DiscardUnknown()
func (*Value) XXX_Marshal ¶
func (*Value) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.