graphql

package
v0.0.0-...-4334ecd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

func (s *Service) RegisterGRPCService(server *grpc.Server)

type UnimplementedGraphQLRPCServer

type UnimplementedGraphQLRPCServer struct {
}

UnimplementedGraphQLRPCServer can be embedded to have forward compatible implementations.

func (*UnimplementedGraphQLRPCServer) GetGraphQLResponse

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL