Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterQueryServiceServer(s grpc.ServiceRegistrar, srv QueryServiceServer)
- type Query
- func (*Query) Descriptor() ([]byte, []int)deprecated
- func (x *Query) GetExpr() *Query_Expression
- func (x *Query) GetGroupBy() []string
- func (x *Query) GetId() int32
- func (*Query) ProtoMessage()
- func (x *Query) ProtoReflect() protoreflect.Message
- func (x *Query) Reset()
- func (x *Query) String() string
- type QueryRequest
- type QueryResponse
- type QueryServiceClient
- type QueryServiceServer
- type Query_Expression
- func (*Query_Expression) Descriptor() ([]byte, []int)deprecated
- func (x *Query_Expression) GetAnd() *Query_Expression_And
- func (x *Query_Expression) GetEq() *Query_Expression_Equal
- func (x *Query_Expression) GetNot() *Query_Expression_Not
- func (x *Query_Expression) GetOr() *Query_Expression_Or
- func (m *Query_Expression) GetValue() isQuery_Expression_Value
- func (*Query_Expression) ProtoMessage()
- func (x *Query_Expression) ProtoReflect() protoreflect.Message
- func (x *Query_Expression) Reset()
- func (x *Query_Expression) String() string
- type Query_Expression_And
- func (*Query_Expression_And) Descriptor() ([]byte, []int)deprecated
- func (x *Query_Expression_And) GetExprs() []*Query_Expression
- func (*Query_Expression_And) ProtoMessage()
- func (x *Query_Expression_And) ProtoReflect() protoreflect.Message
- func (x *Query_Expression_And) Reset()
- func (x *Query_Expression_And) String() string
- type Query_Expression_And_
- type Query_Expression_Eq
- type Query_Expression_Equal
- func (*Query_Expression_Equal) Descriptor() ([]byte, []int)deprecated
- func (x *Query_Expression_Equal) GetColumn() string
- func (x *Query_Expression_Equal) GetPlaceholder() int32
- func (x *Query_Expression_Equal) GetValue() string
- func (*Query_Expression_Equal) ProtoMessage()
- func (x *Query_Expression_Equal) ProtoReflect() protoreflect.Message
- func (x *Query_Expression_Equal) Reset()
- func (x *Query_Expression_Equal) String() string
- type Query_Expression_Not
- func (*Query_Expression_Not) Descriptor() ([]byte, []int)deprecated
- func (x *Query_Expression_Not) GetExpr() *Query_Expression
- func (*Query_Expression_Not) ProtoMessage()
- func (x *Query_Expression_Not) ProtoReflect() protoreflect.Message
- func (x *Query_Expression_Not) Reset()
- func (x *Query_Expression_Not) String() string
- type Query_Expression_Not_
- type Query_Expression_Or
- func (*Query_Expression_Or) Descriptor() ([]byte, []int)deprecated
- func (x *Query_Expression_Or) GetExprs() []*Query_Expression
- func (*Query_Expression_Or) ProtoMessage()
- func (x *Query_Expression_Or) ProtoReflect() protoreflect.Message
- func (x *Query_Expression_Or) Reset()
- func (x *Query_Expression_Or) String() string
- type Query_Expression_Or_
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetGroups() []*Result_Group
- func (x *Result) GetQueryId() int32
- func (x *Result) GetTotalCount() uint64
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type Result_Group
- func (*Result_Group) Descriptor() ([]byte, []int)deprecated
- func (x *Result_Group) GetCount() uint64
- func (x *Result_Group) GetFields() []*Result_Group_ResultField
- func (*Result_Group) ProtoMessage()
- func (x *Result_Group) ProtoReflect() protoreflect.Message
- func (x *Result_Group) Reset()
- func (x *Result_Group) String() string
- type Result_Group_ResultField
- func (*Result_Group_ResultField) Descriptor() ([]byte, []int)deprecated
- func (x *Result_Group_ResultField) GetColumn() string
- func (x *Result_Group_ResultField) GetValue() string
- func (*Result_Group_ResultField) ProtoMessage()
- func (x *Result_Group_ResultField) ProtoReflect() protoreflect.Message
- func (x *Result_Group_ResultField) Reset()
- func (x *Result_Group_ResultField) String() string
- type UnimplementedQueryServiceServer
- type UnsafeQueryServiceServer
Constants ¶
const (
QueryService_Query_FullMethodName = "/updog.v1.QueryService/Query"
)
Variables ¶
var File_updog_v1_updog_proto protoreflect.FileDescriptor
var QueryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "updog.v1.QueryService", HandlerType: (*QueryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Query", Handler: _QueryService_Query_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "updog/v1/updog.proto", }
QueryService_ServiceDesc is the grpc.ServiceDesc for QueryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterQueryServiceServer ¶
func RegisterQueryServiceServer(s grpc.ServiceRegistrar, srv QueryServiceServer)
Types ¶
type Query ¶
type Query struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Expr *Query_Expression `protobuf:"bytes,2,opt,name=expr,proto3" json:"expr,omitempty"` GroupBy []string `protobuf:"bytes,3,rep,name=group_by,json=groupBy,proto3" json:"group_by,omitempty"` // contains filtered or unexported fields }
func (*Query) Descriptor
deprecated
func (*Query) GetExpr ¶
func (x *Query) GetExpr() *Query_Expression
func (*Query) GetGroupBy ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
func (*Query) ProtoReflect ¶
func (x *Query) ProtoReflect() protoreflect.Message
type QueryRequest ¶
type QueryRequest struct { Queries []*Query `protobuf:"bytes,1,rep,name=queries,proto3" json:"queries,omitempty"` // contains filtered or unexported fields }
func (*QueryRequest) Descriptor
deprecated
func (*QueryRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.
func (*QueryRequest) GetQueries ¶
func (x *QueryRequest) GetQueries() []*Query
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) ProtoReflect ¶
func (x *QueryRequest) ProtoReflect() protoreflect.Message
func (*QueryRequest) Reset ¶
func (x *QueryRequest) Reset()
func (*QueryRequest) String ¶
func (x *QueryRequest) String() string
type QueryResponse ¶
type QueryResponse struct { Results []*Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*QueryResponse) Descriptor
deprecated
func (*QueryResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.
func (*QueryResponse) GetResults ¶
func (x *QueryResponse) GetResults() []*Result
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) ProtoReflect ¶
func (x *QueryResponse) ProtoReflect() protoreflect.Message
func (*QueryResponse) Reset ¶
func (x *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (x *QueryResponse) String() string
type QueryServiceClient ¶
type QueryServiceClient interface {
Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
}
QueryServiceClient is the client API for QueryService 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 NewQueryServiceClient ¶
func NewQueryServiceClient(cc grpc.ClientConnInterface) QueryServiceClient
type QueryServiceServer ¶
type QueryServiceServer interface { Query(context.Context, *QueryRequest) (*QueryResponse, error) // contains filtered or unexported methods }
QueryServiceServer is the server API for QueryService service. All implementations must embed UnimplementedQueryServiceServer for forward compatibility
type Query_Expression ¶
type Query_Expression struct { // Types that are assignable to Value: // // *Query_Expression_Eq // *Query_Expression_Not_ // *Query_Expression_And_ // *Query_Expression_Or_ Value isQuery_Expression_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*Query_Expression) Descriptor
deprecated
func (*Query_Expression) Descriptor() ([]byte, []int)
Deprecated: Use Query_Expression.ProtoReflect.Descriptor instead.
func (*Query_Expression) GetAnd ¶
func (x *Query_Expression) GetAnd() *Query_Expression_And
func (*Query_Expression) GetEq ¶
func (x *Query_Expression) GetEq() *Query_Expression_Equal
func (*Query_Expression) GetNot ¶
func (x *Query_Expression) GetNot() *Query_Expression_Not
func (*Query_Expression) GetOr ¶
func (x *Query_Expression) GetOr() *Query_Expression_Or
func (*Query_Expression) GetValue ¶
func (m *Query_Expression) GetValue() isQuery_Expression_Value
func (*Query_Expression) ProtoMessage ¶
func (*Query_Expression) ProtoMessage()
func (*Query_Expression) ProtoReflect ¶
func (x *Query_Expression) ProtoReflect() protoreflect.Message
func (*Query_Expression) Reset ¶
func (x *Query_Expression) Reset()
func (*Query_Expression) String ¶
func (x *Query_Expression) String() string
type Query_Expression_And ¶
type Query_Expression_And struct { Exprs []*Query_Expression `protobuf:"bytes,1,rep,name=exprs,proto3" json:"exprs,omitempty"` // contains filtered or unexported fields }
func (*Query_Expression_And) Descriptor
deprecated
func (*Query_Expression_And) Descriptor() ([]byte, []int)
Deprecated: Use Query_Expression_And.ProtoReflect.Descriptor instead.
func (*Query_Expression_And) GetExprs ¶
func (x *Query_Expression_And) GetExprs() []*Query_Expression
func (*Query_Expression_And) ProtoMessage ¶
func (*Query_Expression_And) ProtoMessage()
func (*Query_Expression_And) ProtoReflect ¶
func (x *Query_Expression_And) ProtoReflect() protoreflect.Message
func (*Query_Expression_And) Reset ¶
func (x *Query_Expression_And) Reset()
func (*Query_Expression_And) String ¶
func (x *Query_Expression_And) String() string
type Query_Expression_And_ ¶
type Query_Expression_And_ struct {
And *Query_Expression_And `protobuf:"bytes,3,opt,name=and,proto3,oneof"`
}
type Query_Expression_Eq ¶
type Query_Expression_Eq struct {
Eq *Query_Expression_Equal `protobuf:"bytes,1,opt,name=eq,proto3,oneof"`
}
type Query_Expression_Equal ¶
type Query_Expression_Equal struct { Column string `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Placeholder int32 `protobuf:"varint,3,opt,name=placeholder,proto3" json:"placeholder,omitempty"` // contains filtered or unexported fields }
func (*Query_Expression_Equal) Descriptor
deprecated
func (*Query_Expression_Equal) Descriptor() ([]byte, []int)
Deprecated: Use Query_Expression_Equal.ProtoReflect.Descriptor instead.
func (*Query_Expression_Equal) GetColumn ¶
func (x *Query_Expression_Equal) GetColumn() string
func (*Query_Expression_Equal) GetPlaceholder ¶
func (x *Query_Expression_Equal) GetPlaceholder() int32
func (*Query_Expression_Equal) GetValue ¶
func (x *Query_Expression_Equal) GetValue() string
func (*Query_Expression_Equal) ProtoMessage ¶
func (*Query_Expression_Equal) ProtoMessage()
func (*Query_Expression_Equal) ProtoReflect ¶
func (x *Query_Expression_Equal) ProtoReflect() protoreflect.Message
func (*Query_Expression_Equal) Reset ¶
func (x *Query_Expression_Equal) Reset()
func (*Query_Expression_Equal) String ¶
func (x *Query_Expression_Equal) String() string
type Query_Expression_Not ¶
type Query_Expression_Not struct { Expr *Query_Expression `protobuf:"bytes,1,opt,name=expr,proto3" json:"expr,omitempty"` // contains filtered or unexported fields }
func (*Query_Expression_Not) Descriptor
deprecated
func (*Query_Expression_Not) Descriptor() ([]byte, []int)
Deprecated: Use Query_Expression_Not.ProtoReflect.Descriptor instead.
func (*Query_Expression_Not) GetExpr ¶
func (x *Query_Expression_Not) GetExpr() *Query_Expression
func (*Query_Expression_Not) ProtoMessage ¶
func (*Query_Expression_Not) ProtoMessage()
func (*Query_Expression_Not) ProtoReflect ¶
func (x *Query_Expression_Not) ProtoReflect() protoreflect.Message
func (*Query_Expression_Not) Reset ¶
func (x *Query_Expression_Not) Reset()
func (*Query_Expression_Not) String ¶
func (x *Query_Expression_Not) String() string
type Query_Expression_Not_ ¶
type Query_Expression_Not_ struct {
Not *Query_Expression_Not `protobuf:"bytes,2,opt,name=not,proto3,oneof"`
}
type Query_Expression_Or ¶
type Query_Expression_Or struct { Exprs []*Query_Expression `protobuf:"bytes,1,rep,name=exprs,proto3" json:"exprs,omitempty"` // contains filtered or unexported fields }
func (*Query_Expression_Or) Descriptor
deprecated
func (*Query_Expression_Or) Descriptor() ([]byte, []int)
Deprecated: Use Query_Expression_Or.ProtoReflect.Descriptor instead.
func (*Query_Expression_Or) GetExprs ¶
func (x *Query_Expression_Or) GetExprs() []*Query_Expression
func (*Query_Expression_Or) ProtoMessage ¶
func (*Query_Expression_Or) ProtoMessage()
func (*Query_Expression_Or) ProtoReflect ¶
func (x *Query_Expression_Or) ProtoReflect() protoreflect.Message
func (*Query_Expression_Or) Reset ¶
func (x *Query_Expression_Or) Reset()
func (*Query_Expression_Or) String ¶
func (x *Query_Expression_Or) String() string
type Query_Expression_Or_ ¶
type Query_Expression_Or_ struct {
Or *Query_Expression_Or `protobuf:"bytes,4,opt,name=or,proto3,oneof"`
}
type Result ¶
type Result struct { QueryId int32 `protobuf:"varint,1,opt,name=query_id,json=queryId,proto3" json:"query_id,omitempty"` TotalCount uint64 `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` Groups []*Result_Group `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) GetGroups ¶
func (x *Result) GetGroups() []*Result_Group
func (*Result) GetQueryId ¶
func (*Result) GetTotalCount ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type Result_Group ¶
type Result_Group struct { Fields []*Result_Group_ResultField `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*Result_Group) Descriptor
deprecated
func (*Result_Group) Descriptor() ([]byte, []int)
Deprecated: Use Result_Group.ProtoReflect.Descriptor instead.
func (*Result_Group) GetCount ¶
func (x *Result_Group) GetCount() uint64
func (*Result_Group) GetFields ¶
func (x *Result_Group) GetFields() []*Result_Group_ResultField
func (*Result_Group) ProtoMessage ¶
func (*Result_Group) ProtoMessage()
func (*Result_Group) ProtoReflect ¶
func (x *Result_Group) ProtoReflect() protoreflect.Message
func (*Result_Group) Reset ¶
func (x *Result_Group) Reset()
func (*Result_Group) String ¶
func (x *Result_Group) String() string
type Result_Group_ResultField ¶
type Result_Group_ResultField struct { Column string `protobuf:"bytes,1,opt,name=column,proto3" json:"column,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Result_Group_ResultField) Descriptor
deprecated
func (*Result_Group_ResultField) Descriptor() ([]byte, []int)
Deprecated: Use Result_Group_ResultField.ProtoReflect.Descriptor instead.
func (*Result_Group_ResultField) GetColumn ¶
func (x *Result_Group_ResultField) GetColumn() string
func (*Result_Group_ResultField) GetValue ¶
func (x *Result_Group_ResultField) GetValue() string
func (*Result_Group_ResultField) ProtoMessage ¶
func (*Result_Group_ResultField) ProtoMessage()
func (*Result_Group_ResultField) ProtoReflect ¶
func (x *Result_Group_ResultField) ProtoReflect() protoreflect.Message
func (*Result_Group_ResultField) Reset ¶
func (x *Result_Group_ResultField) Reset()
func (*Result_Group_ResultField) String ¶
func (x *Result_Group_ResultField) String() string
type UnimplementedQueryServiceServer ¶
type UnimplementedQueryServiceServer struct { }
UnimplementedQueryServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServiceServer) Query ¶
func (UnimplementedQueryServiceServer) Query(context.Context, *QueryRequest) (*QueryResponse, error)
type UnsafeQueryServiceServer ¶
type UnsafeQueryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServiceServer will result in compilation errors.