Documentation ¶
Index ¶
- Variables
- func RegisterGraphRPCServer(s *grpc.Server, srv GraphRPCServer)
- type Error
- func (*Error) Descriptor() ([]byte, []int)deprecated
- func (x *Error) GetLocations() []*Location
- func (x *Error) GetMessage() string
- func (x *Error) GetPath() []string
- func (*Error) ProtoMessage()
- func (x *Error) ProtoReflect() protoreflect.Message
- func (x *Error) Reset()
- func (x *Error) String() string
- type ExecRequest
- func (*ExecRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExecRequest) GetOperationName() string
- func (x *ExecRequest) GetQuery() string
- func (x *ExecRequest) GetVariables() []byte
- func (*ExecRequest) ProtoMessage()
- func (x *ExecRequest) ProtoReflect() protoreflect.Message
- func (x *ExecRequest) Reset()
- func (x *ExecRequest) String() string
- type ExecResponse
- func (*ExecResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ExecResponse) GetData() []byte
- func (x *ExecResponse) GetErrors() []*Error
- func (*ExecResponse) ProtoMessage()
- func (x *ExecResponse) ProtoReflect() protoreflect.Message
- func (x *ExecResponse) Reset()
- func (x *ExecResponse) String() string
- type GraphRPCClient
- type GraphRPCServer
- type Location
- type UnimplementedGraphRPCServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_graphrpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGraphRPCServer ¶
func RegisterGraphRPCServer(s *grpc.Server, srv GraphRPCServer)
Types ¶
type Error ¶
type Error struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Locations []*Location `protobuf:"bytes,2,rep,name=locations,proto3" json:"locations,omitempty"` Path []string `protobuf:"bytes,3,rep,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*Error) Descriptor
deprecated
func (*Error) GetLocations ¶
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type ExecRequest ¶
type ExecRequest struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` OperationName string `protobuf:"bytes,2,opt,name=operationName,proto3" json:"operationName,omitempty"` Variables []byte `protobuf:"bytes,3,opt,name=variables,proto3" json:"variables,omitempty"` // contains filtered or unexported fields }
func (*ExecRequest) Descriptor
deprecated
func (*ExecRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExecRequest.ProtoReflect.Descriptor instead.
func (*ExecRequest) GetOperationName ¶
func (x *ExecRequest) GetOperationName() string
func (*ExecRequest) GetQuery ¶
func (x *ExecRequest) GetQuery() string
func (*ExecRequest) GetVariables ¶
func (x *ExecRequest) GetVariables() []byte
func (*ExecRequest) ProtoMessage ¶
func (*ExecRequest) ProtoMessage()
func (*ExecRequest) ProtoReflect ¶
func (x *ExecRequest) ProtoReflect() protoreflect.Message
func (*ExecRequest) Reset ¶
func (x *ExecRequest) Reset()
func (*ExecRequest) String ¶
func (x *ExecRequest) String() string
type ExecResponse ¶
type ExecResponse struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Errors []*Error `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*ExecResponse) Descriptor
deprecated
func (*ExecResponse) Descriptor() ([]byte, []int)
Deprecated: Use ExecResponse.ProtoReflect.Descriptor instead.
func (*ExecResponse) GetData ¶
func (x *ExecResponse) GetData() []byte
func (*ExecResponse) GetErrors ¶
func (x *ExecResponse) GetErrors() []*Error
func (*ExecResponse) ProtoMessage ¶
func (*ExecResponse) ProtoMessage()
func (*ExecResponse) ProtoReflect ¶
func (x *ExecResponse) ProtoReflect() protoreflect.Message
func (*ExecResponse) Reset ¶
func (x *ExecResponse) Reset()
func (*ExecResponse) String ¶
func (x *ExecResponse) String() string
type GraphRPCClient ¶
type GraphRPCClient interface {
Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error)
}
GraphRPCClient is the client API for GraphRPC service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGraphRPCClient ¶
func NewGraphRPCClient(cc grpc.ClientConnInterface) GraphRPCClient
type GraphRPCServer ¶
type GraphRPCServer interface {
Exec(context.Context, *ExecRequest) (*ExecResponse, error)
}
GraphRPCServer is the server API for GraphRPC service.
type Location ¶
type Location struct { Line int32 `protobuf:"varint,1,opt,name=line,proto3" json:"line,omitempty"` Column int32 `protobuf:"varint,2,opt,name=column,proto3" json:"column,omitempty"` // contains filtered or unexported fields }
func (*Location) Descriptor
deprecated
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
type UnimplementedGraphRPCServer ¶
type UnimplementedGraphRPCServer struct { }
UnimplementedGraphRPCServer can be embedded to have forward compatible implementations.
func (*UnimplementedGraphRPCServer) Exec ¶
func (*UnimplementedGraphRPCServer) Exec(context.Context, *ExecRequest) (*ExecResponse, error)
Click to show internal directories.
Click to hide internal directories.