Documentation ¶
Index ¶
- func RegisterGraphQLRPCServer(s *grpc.Server, srv GraphQLRPCServer)
- type GraphQLRPCClient
- type GraphQLRPCServer
- type GraphQLRequest
- func (*GraphQLRequest) Descriptor() ([]byte, []int)
- func (m *GraphQLRequest) GetPayload() []byte
- func (*GraphQLRequest) ProtoMessage()
- func (m *GraphQLRequest) Reset()
- func (m *GraphQLRequest) String() string
- func (m *GraphQLRequest) XXX_DiscardUnknown()
- func (m *GraphQLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GraphQLRequest) XXX_Merge(src proto.Message)
- func (m *GraphQLRequest) XXX_Size() int
- func (m *GraphQLRequest) XXX_Unmarshal(b []byte) error
- type GraphQLResponse
- func (*GraphQLResponse) Descriptor() ([]byte, []int)
- func (m *GraphQLResponse) GetPayload() []byte
- func (*GraphQLResponse) ProtoMessage()
- func (m *GraphQLResponse) Reset()
- func (m *GraphQLResponse) String() string
- func (m *GraphQLResponse) XXX_DiscardUnknown()
- func (m *GraphQLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GraphQLResponse) XXX_Merge(src proto.Message)
- func (m *GraphQLResponse) XXX_Size() int
- func (m *GraphQLResponse) XXX_Unmarshal(b []byte) error
- type Service
- type UnimplementedGraphQLRPCServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGraphQLRPCServer ¶
func RegisterGraphQLRPCServer(s *grpc.Server, srv GraphQLRPCServer)
Types ¶
type GraphQLRPCClient ¶
type GraphQLRPCClient interface {
GetGraphQLResponse(ctx context.Context, in *GraphQLRequest, opts ...grpc.CallOption) (*GraphQLResponse, error)
}
GraphQLRPCClient is the client API for GraphQLRPC service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGraphQLRPCClient ¶
func NewGraphQLRPCClient(cc grpc.ClientConnInterface) GraphQLRPCClient
type GraphQLRPCServer ¶
type GraphQLRPCServer interface {
GetGraphQLResponse(context.Context, *GraphQLRequest) (*GraphQLResponse, error)
}
GraphQLRPCServer is the server API for GraphQLRPC service.
type GraphQLRequest ¶
type GraphQLRequest struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GraphQLRequest) Descriptor ¶
func (*GraphQLRequest) Descriptor() ([]byte, []int)
func (*GraphQLRequest) GetPayload ¶
func (m *GraphQLRequest) GetPayload() []byte
func (*GraphQLRequest) ProtoMessage ¶
func (*GraphQLRequest) ProtoMessage()
func (*GraphQLRequest) Reset ¶
func (m *GraphQLRequest) Reset()
func (*GraphQLRequest) String ¶
func (m *GraphQLRequest) String() string
func (*GraphQLRequest) XXX_DiscardUnknown ¶
func (m *GraphQLRequest) XXX_DiscardUnknown()
func (*GraphQLRequest) XXX_Marshal ¶
func (m *GraphQLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GraphQLRequest) XXX_Merge ¶
func (m *GraphQLRequest) XXX_Merge(src proto.Message)
func (*GraphQLRequest) XXX_Size ¶
func (m *GraphQLRequest) XXX_Size() int
func (*GraphQLRequest) XXX_Unmarshal ¶
func (m *GraphQLRequest) XXX_Unmarshal(b []byte) error
type GraphQLResponse ¶
type GraphQLResponse struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GraphQLResponse) Descriptor ¶
func (*GraphQLResponse) Descriptor() ([]byte, []int)
func (*GraphQLResponse) GetPayload ¶
func (m *GraphQLResponse) GetPayload() []byte
func (*GraphQLResponse) ProtoMessage ¶
func (*GraphQLResponse) ProtoMessage()
func (*GraphQLResponse) Reset ¶
func (m *GraphQLResponse) Reset()
func (*GraphQLResponse) String ¶
func (m *GraphQLResponse) String() string
func (*GraphQLResponse) XXX_DiscardUnknown ¶
func (m *GraphQLResponse) XXX_DiscardUnknown()
func (*GraphQLResponse) XXX_Marshal ¶
func (m *GraphQLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GraphQLResponse) XXX_Merge ¶
func (m *GraphQLResponse) XXX_Merge(src proto.Message)
func (*GraphQLResponse) XXX_Size ¶
func (m *GraphQLResponse) XXX_Size() int
func (*GraphQLResponse) XXX_Unmarshal ¶
func (m *GraphQLResponse) XXX_Unmarshal(b []byte) error
type Service ¶
type Service struct { UnimplementedGraphQLRPCServer // contains filtered or unexported fields }
func NewGraphQLService ¶
func NewGraphQLService(flamedContext *flamedContext.FlamedContext, schema goGraphQL.Schema) *Service
func (*Service) GetGraphQLResponse ¶
func (s *Service) GetGraphQLResponse(ctx context.Context, request *GraphQLRequest) (*GraphQLResponse, error)
func (*Service) RegisterGRPCService ¶
type UnimplementedGraphQLRPCServer ¶
type UnimplementedGraphQLRPCServer struct { }
UnimplementedGraphQLRPCServer can be embedded to have forward compatible implementations.
func (*UnimplementedGraphQLRPCServer) GetGraphQLResponse ¶
func (*UnimplementedGraphQLRPCServer) GetGraphQLResponse(ctx context.Context, req *GraphQLRequest) (*GraphQLResponse, error)
Click to show internal directories.
Click to hide internal directories.