Documentation ¶
Index ¶
- Variables
- func RegisterServerService(s grpc.ServiceRegistrar, srv *ServerService)
- type GraphQLQuery
- func (*GraphQLQuery) Descriptor() ([]byte, []int)deprecated
- func (x *GraphQLQuery) GetHierarchy() map[string]string
- func (x *GraphQLQuery) GetQuery() string
- func (x *GraphQLQuery) GetUserProvidedArgs() map[string]string
- func (*GraphQLQuery) ProtoMessage()
- func (x *GraphQLQuery) ProtoReflect() protoreflect.Message
- func (x *GraphQLQuery) Reset()
- func (x *GraphQLQuery) String() string
- type GraphQLResponse
- func (*GraphQLResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GraphQLResponse) GetCode() uint32
- func (x *GraphQLResponse) GetData() map[string]string
- func (x *GraphQLResponse) GetLast() string
- func (x *GraphQLResponse) GetMessage() string
- func (x *GraphQLResponse) GetTotalRecords() uint32
- func (*GraphQLResponse) ProtoMessage()
- func (x *GraphQLResponse) ProtoReflect() protoreflect.Message
- func (x *GraphQLResponse) Reset()
- func (x *GraphQLResponse) String() string
- type ServerClient
- type ServerService
- type UnstableServerService
Constants ¶
This section is empty.
Variables ¶
var File_proto_graphql_query_proto protoreflect.FileDescriptor
Functions ¶
func RegisterServerService ¶
func RegisterServerService(s grpc.ServiceRegistrar, srv *ServerService)
RegisterServerService registers a service implementation with a gRPC server.
Types ¶
type GraphQLQuery ¶
type GraphQLQuery struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` // string uniquely identifying the query Hierarchy map[string]string `` // kvp's identifying the entire hierarchy of the node /* 159-byte string literal not displayed */ UserProvidedArgs map[string]string `` // custom filter kvp's. /* 173-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GraphQLQuery) Descriptor
deprecated
func (*GraphQLQuery) Descriptor() ([]byte, []int)
Deprecated: Use GraphQLQuery.ProtoReflect.Descriptor instead.
func (*GraphQLQuery) GetHierarchy ¶
func (x *GraphQLQuery) GetHierarchy() map[string]string
func (*GraphQLQuery) GetQuery ¶
func (x *GraphQLQuery) GetQuery() string
func (*GraphQLQuery) GetUserProvidedArgs ¶
func (x *GraphQLQuery) GetUserProvidedArgs() map[string]string
func (*GraphQLQuery) ProtoMessage ¶
func (*GraphQLQuery) ProtoMessage()
func (*GraphQLQuery) ProtoReflect ¶
func (x *GraphQLQuery) ProtoReflect() protoreflect.Message
func (*GraphQLQuery) Reset ¶
func (x *GraphQLQuery) Reset()
func (*GraphQLQuery) String ¶
func (x *GraphQLQuery) String() string
type GraphQLResponse ¶
type GraphQLResponse struct { Code uint32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data map[string]string `` /* 149-byte string literal not displayed */ Last string `protobuf:"bytes,4,opt,name=last,proto3" json:"last,omitempty"` TotalRecords uint32 `protobuf:"varint,5,opt,name=total_records,json=totalRecords,proto3" json:"total_records,omitempty"` // contains filtered or unexported fields }
func (*GraphQLResponse) Descriptor
deprecated
func (*GraphQLResponse) Descriptor() ([]byte, []int)
Deprecated: Use GraphQLResponse.ProtoReflect.Descriptor instead.
func (*GraphQLResponse) GetCode ¶
func (x *GraphQLResponse) GetCode() uint32
func (*GraphQLResponse) GetData ¶
func (x *GraphQLResponse) GetData() map[string]string
func (*GraphQLResponse) GetLast ¶
func (x *GraphQLResponse) GetLast() string
func (*GraphQLResponse) GetMessage ¶
func (x *GraphQLResponse) GetMessage() string
func (*GraphQLResponse) GetTotalRecords ¶
func (x *GraphQLResponse) GetTotalRecords() uint32
func (*GraphQLResponse) ProtoMessage ¶
func (*GraphQLResponse) ProtoMessage()
func (*GraphQLResponse) ProtoReflect ¶
func (x *GraphQLResponse) ProtoReflect() protoreflect.Message
func (*GraphQLResponse) Reset ¶
func (x *GraphQLResponse) Reset()
func (*GraphQLResponse) String ¶
func (x *GraphQLResponse) String() string
type ServerClient ¶
type ServerClient interface {
Query(ctx context.Context, in *GraphQLQuery, opts ...grpc.CallOption) (*GraphQLResponse, error)
}
ServerClient is the client API for Server 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 NewServerClient ¶
func NewServerClient(cc grpc.ClientConnInterface) ServerClient
type ServerService ¶
type ServerService struct {
Query func(context.Context, *GraphQLQuery) (*GraphQLResponse, error)
}
ServerService is the service API for Server service. Fields should be assigned to their respective handler implementations only before RegisterServerService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.
func NewServerService ¶
func NewServerService(s interface{}) *ServerService
NewServerService creates a new ServerService containing the implemented methods of the Server service in s. Any unimplemented methods will result in the gRPC server returning an UNIMPLEMENTED status to the client. This includes situations where the method handler is misspelled or has the wrong signature. For this reason, this function should be used with great care and is not recommended to be used by most users.
type UnstableServerService ¶
type UnstableServerService interface {
Query(context.Context, *GraphQLQuery) (*GraphQLResponse, error)
}
UnstableServerService is the service API for Server service. New methods may be added to this interface if they are added to the service definition, which is not a backward-compatible change. For this reason, use of this type is not recommended.