Documentation ¶
Index ¶
- func RegisterGraphQLServer(s *grpc.Server, srv GraphQLServer)
- type Error
- func (*Error) Descriptor() ([]byte, []int)
- func (m *Error) GetExtensions() *_struct.Struct
- func (m *Error) GetLocations() []*SourceLocation
- func (m *Error) GetMessage() string
- func (m *Error) GetPath() *_struct.ListValue
- func (*Error) ProtoMessage()
- func (m *Error) Reset()
- func (m *Error) String() string
- func (m *Error) XXX_DiscardUnknown()
- func (m *Error) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Error) XXX_Merge(src proto.Message)
- func (m *Error) XXX_Size() int
- func (m *Error) XXX_Unmarshal(b []byte) error
- type GraphQLClient
- type GraphQLServer
- type GraphQL_ExecuteClient
- type GraphQL_ExecuteServer
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetOperationName() string
- func (m *Request) GetQuery() string
- func (m *Request) GetVariables() *_struct.Struct
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetData() string
- func (m *Response) GetErrors() []*Error
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type SourceLocation
- func (*SourceLocation) Descriptor() ([]byte, []int)
- func (m *SourceLocation) GetColumn() int32
- func (m *SourceLocation) GetLine() int32
- func (*SourceLocation) ProtoMessage()
- func (m *SourceLocation) Reset()
- func (m *SourceLocation) String() string
- func (m *SourceLocation) XXX_DiscardUnknown()
- func (m *SourceLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SourceLocation) XXX_Merge(src proto.Message)
- func (m *SourceLocation) XXX_Size() int
- func (m *SourceLocation) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGraphQLServer ¶
func RegisterGraphQLServer(s *grpc.Server, srv GraphQLServer)
Types ¶
type Error ¶
type Error struct { // Description of the error intended for the developer. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // The source location for the error. Locations []*SourceLocation `protobuf:"bytes,2,rep,name=locations,proto3" json:"locations,omitempty"` // Path to the `null` value justified by this error. Path *_struct.ListValue `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // Free-form extensions (starts with a map) Extensions *_struct.Struct `protobuf:"bytes,4,opt,name=extensions,proto3" json:"extensions,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
GraphQL Error
func (*Error) Descriptor ¶
func (*Error) GetExtensions ¶
func (*Error) GetLocations ¶
func (m *Error) GetLocations() []*SourceLocation
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) XXX_DiscardUnknown ¶
func (m *Error) XXX_DiscardUnknown()
func (*Error) XXX_Marshal ¶
func (*Error) XXX_Unmarshal ¶
type GraphQLClient ¶
type GraphQLClient interface {
Execute(ctx context.Context, in *Request, opts ...grpc.CallOption) (GraphQL_ExecuteClient, error)
}
GraphQLClient is the client API for GraphQL service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGraphQLClient ¶
func NewGraphQLClient(cc *grpc.ClientConn) GraphQLClient
type GraphQLServer ¶
type GraphQLServer interface {
Execute(*Request, GraphQL_ExecuteServer) error
}
GraphQLServer is the server API for GraphQL service.
type GraphQL_ExecuteClient ¶
type GraphQL_ExecuteClient interface { Recv() (*Response, error) grpc.ClientStream }
type GraphQL_ExecuteServer ¶
type GraphQL_ExecuteServer interface { Send(*Response) error grpc.ServerStream }
type Request ¶
type Request struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` Variables *_struct.Struct `protobuf:"bytes,2,opt,name=variables,proto3" json:"variables,omitempty"` OperationName string `protobuf:"bytes,3,opt,name=operationName,proto3" json:"operationName,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetOperationName ¶
func (*Request) GetVariables ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type Response ¶
type Response struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type SourceLocation ¶
type SourceLocation struct { // The line the error occurred at. Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"` // The column the error occurred at. Column int32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
The source location of an error.
func (*SourceLocation) Descriptor ¶
func (*SourceLocation) Descriptor() ([]byte, []int)
func (*SourceLocation) GetColumn ¶
func (m *SourceLocation) GetColumn() int32
func (*SourceLocation) GetLine ¶
func (m *SourceLocation) GetLine() int32
func (*SourceLocation) ProtoMessage ¶
func (*SourceLocation) ProtoMessage()
func (*SourceLocation) Reset ¶
func (m *SourceLocation) Reset()
func (*SourceLocation) String ¶
func (m *SourceLocation) String() string
func (*SourceLocation) XXX_DiscardUnknown ¶
func (m *SourceLocation) XXX_DiscardUnknown()
func (*SourceLocation) XXX_Marshal ¶
func (m *SourceLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SourceLocation) XXX_Merge ¶
func (m *SourceLocation) XXX_Merge(src proto.Message)
func (*SourceLocation) XXX_Size ¶
func (m *SourceLocation) XXX_Size() int
func (*SourceLocation) XXX_Unmarshal ¶
func (m *SourceLocation) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.