Documentation
¶
Overview ¶
Package server is a generated GoMock package.
Index ¶
- Constants
- Variables
- func NewQueryPlanCacher() *queryPlanCacher
- type Gateway
- type GraphqlCaller
- type GraphqlCallerRegistry
- type GraphqlQueryer
- type GraphqlReflection
- type HttpUpstream
- type HttpUpstreamInvoker
- type MockGateway
- type MockGatewayBuildHTTPServerCall
- func (c *MockGatewayBuildHTTPServerCall) Do(f func() (http.Handler, error)) *MockGatewayBuildHTTPServerCall
- func (c *MockGatewayBuildHTTPServerCall) DoAndReturn(f func() (http.Handler, error)) *MockGatewayBuildHTTPServerCall
- func (c *MockGatewayBuildHTTPServerCall) Return(arg0 http.Handler, arg1 error) *MockGatewayBuildHTTPServerCall
- type MockGatewayBuildServerCall
- func (c *MockGatewayBuildServerCall) Do(f func() (http.Handler, error)) *MockGatewayBuildServerCall
- func (c *MockGatewayBuildServerCall) DoAndReturn(f func() (http.Handler, error)) *MockGatewayBuildServerCall
- func (c *MockGatewayBuildServerCall) Return(arg0 http.Handler, arg1 error) *MockGatewayBuildServerCall
- type MockGatewayMockRecorder
- type MockGraphqlCaller
- type MockGraphqlCallerCallCall
- type MockGraphqlCallerMockRecorder
- type MockGraphqlCallerRegistry
- func (m *MockGraphqlCallerRegistry) EXPECT() *MockGraphqlCallerRegistryMockRecorder
- func (m *MockGraphqlCallerRegistry) FindMethodByName(op ast.Operation, name string) protoreflect.MethodDescriptor
- func (m *MockGraphqlCallerRegistry) GetCallerStub(service string) *grpcdynamic.Stub
- func (m *MockGraphqlCallerRegistry) GraphQLSchema() *ast.Schema
- func (m *MockGraphqlCallerRegistry) Marshal(proto proto.Message, field *ast.Field) (any, error)
- func (m *MockGraphqlCallerRegistry) Unmarshal(desc protoreflect.MessageDescriptor, field *ast.Field, vars map[string]any) (proto.Message, error)
- type MockGraphqlCallerRegistryFindMethodByNameCall
- func (c *MockGraphqlCallerRegistryFindMethodByNameCall) Do(f func(ast.Operation, string) protoreflect.MethodDescriptor) *MockGraphqlCallerRegistryFindMethodByNameCall
- func (c *MockGraphqlCallerRegistryFindMethodByNameCall) DoAndReturn(f func(ast.Operation, string) protoreflect.MethodDescriptor) *MockGraphqlCallerRegistryFindMethodByNameCall
- func (c *MockGraphqlCallerRegistryFindMethodByNameCall) Return(arg0 protoreflect.MethodDescriptor) *MockGraphqlCallerRegistryFindMethodByNameCall
- type MockGraphqlCallerRegistryGetCallerStubCall
- func (c *MockGraphqlCallerRegistryGetCallerStubCall) Do(f func(string) *grpcdynamic.Stub) *MockGraphqlCallerRegistryGetCallerStubCall
- func (c *MockGraphqlCallerRegistryGetCallerStubCall) DoAndReturn(f func(string) *grpcdynamic.Stub) *MockGraphqlCallerRegistryGetCallerStubCall
- func (c *MockGraphqlCallerRegistryGetCallerStubCall) Return(arg0 *grpcdynamic.Stub) *MockGraphqlCallerRegistryGetCallerStubCall
- type MockGraphqlCallerRegistryGraphQLSchemaCall
- func (c *MockGraphqlCallerRegistryGraphQLSchemaCall) Do(f func() *ast.Schema) *MockGraphqlCallerRegistryGraphQLSchemaCall
- func (c *MockGraphqlCallerRegistryGraphQLSchemaCall) DoAndReturn(f func() *ast.Schema) *MockGraphqlCallerRegistryGraphQLSchemaCall
- func (c *MockGraphqlCallerRegistryGraphQLSchemaCall) Return(arg0 *ast.Schema) *MockGraphqlCallerRegistryGraphQLSchemaCall
- type MockGraphqlCallerRegistryMarshalCall
- func (c *MockGraphqlCallerRegistryMarshalCall) Do(f func(proto.Message, *ast.Field) (any, error)) *MockGraphqlCallerRegistryMarshalCall
- func (c *MockGraphqlCallerRegistryMarshalCall) DoAndReturn(f func(proto.Message, *ast.Field) (any, error)) *MockGraphqlCallerRegistryMarshalCall
- func (c *MockGraphqlCallerRegistryMarshalCall) Return(arg0 any, arg1 error) *MockGraphqlCallerRegistryMarshalCall
- type MockGraphqlCallerRegistryMockRecorder
- func (mr *MockGraphqlCallerRegistryMockRecorder) FindMethodByName(op, name any) *MockGraphqlCallerRegistryFindMethodByNameCall
- func (mr *MockGraphqlCallerRegistryMockRecorder) GetCallerStub(service any) *MockGraphqlCallerRegistryGetCallerStubCall
- func (mr *MockGraphqlCallerRegistryMockRecorder) GraphQLSchema() *MockGraphqlCallerRegistryGraphQLSchemaCall
- func (mr *MockGraphqlCallerRegistryMockRecorder) Marshal(proto, field any) *MockGraphqlCallerRegistryMarshalCall
- func (mr *MockGraphqlCallerRegistryMockRecorder) Unmarshal(desc, field, vars any) *MockGraphqlCallerRegistryUnmarshalCall
- type MockGraphqlCallerRegistryUnmarshalCall
- func (c *MockGraphqlCallerRegistryUnmarshalCall) Do(...) *MockGraphqlCallerRegistryUnmarshalCall
- func (c *MockGraphqlCallerRegistryUnmarshalCall) DoAndReturn(...) *MockGraphqlCallerRegistryUnmarshalCall
- func (c *MockGraphqlCallerRegistryUnmarshalCall) Return(arg0 proto.Message, arg1 error) *MockGraphqlCallerRegistryUnmarshalCall
- type MockGraphqlQueryer
- type MockGraphqlQueryerMockRecorder
- type MockGraphqlQueryerQueryCall
- func (c *MockGraphqlQueryerQueryCall) Do(f func(context.Context, *graphql.QueryInput, any) error) *MockGraphqlQueryerQueryCall
- func (c *MockGraphqlQueryerQueryCall) DoAndReturn(f func(context.Context, *graphql.QueryInput, any) error) *MockGraphqlQueryerQueryCall
- func (c *MockGraphqlQueryerQueryCall) Return(arg0 error) *MockGraphqlQueryerQueryCall
- type MockGraphqlReflection
- type MockGraphqlReflectionListPackagesCall
- func (c *MockGraphqlReflectionListPackagesCall) Do(...) *MockGraphqlReflectionListPackagesCall
- func (c *MockGraphqlReflectionListPackagesCall) DoAndReturn(...) *MockGraphqlReflectionListPackagesCall
- func (c *MockGraphqlReflectionListPackagesCall) Return(arg0 []protoreflect.FileDescriptor, arg1 error) *MockGraphqlReflectionListPackagesCall
- type MockGraphqlReflectionMockRecorder
- type MockHttpUpstream
- type MockHttpUpstreamInvoker
- type MockHttpUpstreamInvokerInvokeCall
- type MockHttpUpstreamInvokerMockRecorder
- type MockHttpUpstreamMockRecorder
- type MockHttpUpstreamRegisterCall
- func (c *MockHttpUpstreamRegisterCall) Do(f func(context.Context, *http.ServeMux)) *MockHttpUpstreamRegisterCall
- func (c *MockHttpUpstreamRegisterCall) DoAndReturn(f func(context.Context, *http.ServeMux)) *MockHttpUpstreamRegisterCall
- func (c *MockHttpUpstreamRegisterCall) Return() *MockHttpUpstreamRegisterCall
Constants ¶
const ( // GraphqlCaller_Call_FullMethodName is the full name of the method [graphqlCaller.Call]. GraphqlCaller_Call_FullMethodName = "github.com/go-kod/grpc-gateway/internal/server/GraphqlCaller.Call" // GraphqlReflection_ListPackages_FullMethodName is the full name of the method [graphqlReflection.ListPackages]. GraphqlReflection_ListPackages_FullMethodName = "github.com/go-kod/grpc-gateway/internal/server/GraphqlReflection.ListPackages" // GraphqlQueryer_Query_FullMethodName is the full name of the method [graphqlQueryer.Query]. GraphqlQueryer_Query_FullMethodName = "github.com/go-kod/grpc-gateway/internal/server/GraphqlQueryer.Query" // HttpUpstreamInvoker_Invoke_FullMethodName is the full name of the method [httpUpstreamInvoker.Invoke]. HttpUpstreamInvoker_Invoke_FullMethodName = "github.com/go-kod/grpc-gateway/internal/server/HttpUpstreamInvoker.Invoke" // HttpUpstream_Register_FullMethodName is the full name of the method [httpUpstream.Register]. HttpUpstream_Register_FullMethodName = "github.com/go-kod/grpc-gateway/internal/server/HttpUpstream.Register" )
Full method names for components.
Variables ¶
var ErrTLSHandshakeFailed = errors.New("TLS handshake failed")
var Hash64 = hash64Pool{ // contains filtered or unexported fields }
Functions ¶
func NewQueryPlanCacher ¶
func NewQueryPlanCacher() *queryPlanCacher
Types ¶
type Gateway ¶
type Gateway interface { // BuildServer is implemented by [server.BuildServer] BuildServer() (http.Handler, error) // BuildHTTPServer is implemented by [server.BuildHTTPServer] BuildHTTPServer() (http.Handler, error) }
Gateway is implemented by server, which can be mocked with NewMockGateway.
type GraphqlCaller ¶
type GraphqlCaller interface { // Call is implemented by [graphqlCaller.Call] Call(ctx context.Context, rpc protoreflect.MethodDescriptor, message proto.Message) (proto.Message, error) }
GraphqlCaller is implemented by [graphqlCaller], which can be mocked with NewMockGraphqlCaller.
type GraphqlCallerRegistry ¶
type GraphqlCallerRegistry interface { // FindMethodByName is implemented by [graphqlCallerRegistry.FindMethodByName] FindMethodByName(op ast.Operation, name string) protoreflect.MethodDescriptor // GraphQLSchema is implemented by [graphqlCallerRegistry.GraphQLSchema] GraphQLSchema() *ast.Schema // Marshal is implemented by [graphqlCallerRegistry.Marshal] Marshal(proto proto.Message, field *ast.Field) (interface{}, error) // Unmarshal is implemented by [graphqlCallerRegistry.Unmarshal] Unmarshal(desc protoreflect.MessageDescriptor, field *ast.Field, vars map[string]interface{}) (proto.Message, error) // GetCallerStub is implemented by [graphqlCallerRegistry.GetCallerStub] GetCallerStub(service string) *grpcdynamic.Stub }
GraphqlCallerRegistry is implemented by [graphqlCallerRegistry], which can be mocked with NewMockGraphqlCallerRegistry.
type GraphqlQueryer ¶
type GraphqlQueryer interface { // Query is implemented by [graphqlQueryer.Query] Query(ctx context.Context, input *graphql.QueryInput, result interface{}) error }
GraphqlQueryer is implemented by [graphqlQueryer], which can be mocked with NewMockGraphqlQueryer.
type GraphqlReflection ¶
type GraphqlReflection interface { // ListPackages is implemented by [graphqlReflection.ListPackages] ListPackages(ctx context.Context, cc grpc.ClientConnInterface) ([]protoreflect.FileDescriptor, error) }
GraphqlReflection is implemented by [graphqlReflection], which can be mocked with NewMockGraphqlReflection.
type HttpUpstream ¶
type HttpUpstream interface { // Register is implemented by [httpUpstream.Register] Register(ctx context.Context, router *http.ServeMux) }
HttpUpstream is implemented by [httpUpstream], which can be mocked with NewMockHttpUpstream.
type HttpUpstreamInvoker ¶
type HttpUpstreamInvoker interface { // Invoke is implemented by [httpUpstreamInvoker.Invoke] Invoke(ctx context.Context, rw http.ResponseWriter, r *http.Request, upstream upstreamInfo, rpcPath string, pathNames []string) }
HttpUpstreamInvoker is implemented by [httpUpstreamInvoker], which can be mocked with NewMockHttpUpstreamInvoker.
type MockGateway ¶
type MockGateway struct {
// contains filtered or unexported fields
}
MockGateway is a mock of Gateway interface.
func NewMockGateway ¶
func NewMockGateway(ctrl *gomock.Controller) *MockGateway
NewMockGateway creates a new mock instance.
func (*MockGateway) BuildHTTPServer ¶
func (m *MockGateway) BuildHTTPServer() (http.Handler, error)
BuildHTTPServer mocks base method.
func (*MockGateway) BuildServer ¶
func (m *MockGateway) BuildServer() (http.Handler, error)
BuildServer mocks base method.
func (*MockGateway) EXPECT ¶
func (m *MockGateway) EXPECT() *MockGatewayMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGatewayBuildHTTPServerCall ¶
MockGatewayBuildHTTPServerCall wrap *gomock.Call
func (*MockGatewayBuildHTTPServerCall) Do ¶
func (c *MockGatewayBuildHTTPServerCall) Do(f func() (http.Handler, error)) *MockGatewayBuildHTTPServerCall
Do rewrite *gomock.Call.Do
func (*MockGatewayBuildHTTPServerCall) DoAndReturn ¶
func (c *MockGatewayBuildHTTPServerCall) DoAndReturn(f func() (http.Handler, error)) *MockGatewayBuildHTTPServerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGatewayBuildHTTPServerCall) Return ¶
func (c *MockGatewayBuildHTTPServerCall) Return(arg0 http.Handler, arg1 error) *MockGatewayBuildHTTPServerCall
Return rewrite *gomock.Call.Return
type MockGatewayBuildServerCall ¶
MockGatewayBuildServerCall wrap *gomock.Call
func (*MockGatewayBuildServerCall) Do ¶
func (c *MockGatewayBuildServerCall) Do(f func() (http.Handler, error)) *MockGatewayBuildServerCall
Do rewrite *gomock.Call.Do
func (*MockGatewayBuildServerCall) DoAndReturn ¶
func (c *MockGatewayBuildServerCall) DoAndReturn(f func() (http.Handler, error)) *MockGatewayBuildServerCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGatewayBuildServerCall) Return ¶
func (c *MockGatewayBuildServerCall) Return(arg0 http.Handler, arg1 error) *MockGatewayBuildServerCall
Return rewrite *gomock.Call.Return
type MockGatewayMockRecorder ¶
type MockGatewayMockRecorder struct {
// contains filtered or unexported fields
}
MockGatewayMockRecorder is the mock recorder for MockGateway.
func (*MockGatewayMockRecorder) BuildHTTPServer ¶
func (mr *MockGatewayMockRecorder) BuildHTTPServer() *MockGatewayBuildHTTPServerCall
BuildHTTPServer indicates an expected call of BuildHTTPServer.
func (*MockGatewayMockRecorder) BuildServer ¶
func (mr *MockGatewayMockRecorder) BuildServer() *MockGatewayBuildServerCall
BuildServer indicates an expected call of BuildServer.
type MockGraphqlCaller ¶
type MockGraphqlCaller struct {
// contains filtered or unexported fields
}
MockGraphqlCaller is a mock of GraphqlCaller interface.
func NewMockGraphqlCaller ¶
func NewMockGraphqlCaller(ctrl *gomock.Controller) *MockGraphqlCaller
NewMockGraphqlCaller creates a new mock instance.
func (*MockGraphqlCaller) Call ¶
func (m *MockGraphqlCaller) Call(ctx context.Context, rpc protoreflect.MethodDescriptor, message proto.Message) (proto.Message, error)
Call mocks base method.
func (*MockGraphqlCaller) EXPECT ¶
func (m *MockGraphqlCaller) EXPECT() *MockGraphqlCallerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockGraphqlCallerCallCall ¶
MockGraphqlCallerCallCall wrap *gomock.Call
func (*MockGraphqlCallerCallCall) Do ¶
func (c *MockGraphqlCallerCallCall) Do(f func(context.Context, protoreflect.MethodDescriptor, proto.Message) (proto.Message, error)) *MockGraphqlCallerCallCall
Do rewrite *gomock.Call.Do
func (*MockGraphqlCallerCallCall) DoAndReturn ¶
func (c *MockGraphqlCallerCallCall) DoAndReturn(f func(context.Context, protoreflect.MethodDescriptor, proto.Message) (proto.Message, error)) *MockGraphqlCallerCallCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGraphqlCallerCallCall) Return ¶
func (c *MockGraphqlCallerCallCall) Return(arg0 proto.Message, arg1 error) *MockGraphqlCallerCallCall
Return rewrite *gomock.Call.Return
type MockGraphqlCallerMockRecorder ¶
type MockGraphqlCallerMockRecorder struct {
// contains filtered or unexported fields
}
MockGraphqlCallerMockRecorder is the mock recorder for MockGraphqlCaller.
func (*MockGraphqlCallerMockRecorder) Call ¶
func (mr *MockGraphqlCallerMockRecorder) Call(ctx, rpc, message any) *MockGraphqlCallerCallCall
Call indicates an expected call of Call.
type MockGraphqlCallerRegistry ¶
type MockGraphqlCallerRegistry struct {
// contains filtered or unexported fields
}
MockGraphqlCallerRegistry is a mock of GraphqlCallerRegistry interface.
func NewMockGraphqlCallerRegistry ¶
func NewMockGraphqlCallerRegistry(ctrl *gomock.Controller) *MockGraphqlCallerRegistry
NewMockGraphqlCallerRegistry creates a new mock instance.
func (*MockGraphqlCallerRegistry) EXPECT ¶
func (m *MockGraphqlCallerRegistry) EXPECT() *MockGraphqlCallerRegistryMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGraphqlCallerRegistry) FindMethodByName ¶
func (m *MockGraphqlCallerRegistry) FindMethodByName(op ast.Operation, name string) protoreflect.MethodDescriptor
FindMethodByName mocks base method.
func (*MockGraphqlCallerRegistry) GetCallerStub ¶
func (m *MockGraphqlCallerRegistry) GetCallerStub(service string) *grpcdynamic.Stub
GetCallerStub mocks base method.
func (*MockGraphqlCallerRegistry) GraphQLSchema ¶
func (m *MockGraphqlCallerRegistry) GraphQLSchema() *ast.Schema
GraphQLSchema mocks base method.
func (*MockGraphqlCallerRegistry) Unmarshal ¶
func (m *MockGraphqlCallerRegistry) Unmarshal(desc protoreflect.MessageDescriptor, field *ast.Field, vars map[string]any) (proto.Message, error)
Unmarshal mocks base method.
type MockGraphqlCallerRegistryFindMethodByNameCall ¶
MockGraphqlCallerRegistryFindMethodByNameCall wrap *gomock.Call
func (*MockGraphqlCallerRegistryFindMethodByNameCall) Do ¶
func (c *MockGraphqlCallerRegistryFindMethodByNameCall) Do(f func(ast.Operation, string) protoreflect.MethodDescriptor) *MockGraphqlCallerRegistryFindMethodByNameCall
Do rewrite *gomock.Call.Do
func (*MockGraphqlCallerRegistryFindMethodByNameCall) DoAndReturn ¶
func (c *MockGraphqlCallerRegistryFindMethodByNameCall) DoAndReturn(f func(ast.Operation, string) protoreflect.MethodDescriptor) *MockGraphqlCallerRegistryFindMethodByNameCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGraphqlCallerRegistryFindMethodByNameCall) Return ¶
func (c *MockGraphqlCallerRegistryFindMethodByNameCall) Return(arg0 protoreflect.MethodDescriptor) *MockGraphqlCallerRegistryFindMethodByNameCall
Return rewrite *gomock.Call.Return
type MockGraphqlCallerRegistryGetCallerStubCall ¶
MockGraphqlCallerRegistryGetCallerStubCall wrap *gomock.Call
func (*MockGraphqlCallerRegistryGetCallerStubCall) Do ¶
func (c *MockGraphqlCallerRegistryGetCallerStubCall) Do(f func(string) *grpcdynamic.Stub) *MockGraphqlCallerRegistryGetCallerStubCall
Do rewrite *gomock.Call.Do
func (*MockGraphqlCallerRegistryGetCallerStubCall) DoAndReturn ¶
func (c *MockGraphqlCallerRegistryGetCallerStubCall) DoAndReturn(f func(string) *grpcdynamic.Stub) *MockGraphqlCallerRegistryGetCallerStubCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGraphqlCallerRegistryGetCallerStubCall) Return ¶
func (c *MockGraphqlCallerRegistryGetCallerStubCall) Return(arg0 *grpcdynamic.Stub) *MockGraphqlCallerRegistryGetCallerStubCall
Return rewrite *gomock.Call.Return
type MockGraphqlCallerRegistryGraphQLSchemaCall ¶
MockGraphqlCallerRegistryGraphQLSchemaCall wrap *gomock.Call
func (*MockGraphqlCallerRegistryGraphQLSchemaCall) Do ¶
func (c *MockGraphqlCallerRegistryGraphQLSchemaCall) Do(f func() *ast.Schema) *MockGraphqlCallerRegistryGraphQLSchemaCall
Do rewrite *gomock.Call.Do
func (*MockGraphqlCallerRegistryGraphQLSchemaCall) DoAndReturn ¶
func (c *MockGraphqlCallerRegistryGraphQLSchemaCall) DoAndReturn(f func() *ast.Schema) *MockGraphqlCallerRegistryGraphQLSchemaCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGraphqlCallerRegistryGraphQLSchemaCall) Return ¶
func (c *MockGraphqlCallerRegistryGraphQLSchemaCall) Return(arg0 *ast.Schema) *MockGraphqlCallerRegistryGraphQLSchemaCall
Return rewrite *gomock.Call.Return
type MockGraphqlCallerRegistryMarshalCall ¶
MockGraphqlCallerRegistryMarshalCall wrap *gomock.Call
func (*MockGraphqlCallerRegistryMarshalCall) Do ¶
func (c *MockGraphqlCallerRegistryMarshalCall) Do(f func(proto.Message, *ast.Field) (any, error)) *MockGraphqlCallerRegistryMarshalCall
Do rewrite *gomock.Call.Do
func (*MockGraphqlCallerRegistryMarshalCall) DoAndReturn ¶
func (c *MockGraphqlCallerRegistryMarshalCall) DoAndReturn(f func(proto.Message, *ast.Field) (any, error)) *MockGraphqlCallerRegistryMarshalCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGraphqlCallerRegistryMarshalCall) Return ¶
func (c *MockGraphqlCallerRegistryMarshalCall) Return(arg0 any, arg1 error) *MockGraphqlCallerRegistryMarshalCall
Return rewrite *gomock.Call.Return
type MockGraphqlCallerRegistryMockRecorder ¶
type MockGraphqlCallerRegistryMockRecorder struct {
// contains filtered or unexported fields
}
MockGraphqlCallerRegistryMockRecorder is the mock recorder for MockGraphqlCallerRegistry.
func (*MockGraphqlCallerRegistryMockRecorder) FindMethodByName ¶
func (mr *MockGraphqlCallerRegistryMockRecorder) FindMethodByName(op, name any) *MockGraphqlCallerRegistryFindMethodByNameCall
FindMethodByName indicates an expected call of FindMethodByName.
func (*MockGraphqlCallerRegistryMockRecorder) GetCallerStub ¶
func (mr *MockGraphqlCallerRegistryMockRecorder) GetCallerStub(service any) *MockGraphqlCallerRegistryGetCallerStubCall
GetCallerStub indicates an expected call of GetCallerStub.
func (*MockGraphqlCallerRegistryMockRecorder) GraphQLSchema ¶
func (mr *MockGraphqlCallerRegistryMockRecorder) GraphQLSchema() *MockGraphqlCallerRegistryGraphQLSchemaCall
GraphQLSchema indicates an expected call of GraphQLSchema.
func (*MockGraphqlCallerRegistryMockRecorder) Marshal ¶
func (mr *MockGraphqlCallerRegistryMockRecorder) Marshal(proto, field any) *MockGraphqlCallerRegistryMarshalCall
Marshal indicates an expected call of Marshal.
func (*MockGraphqlCallerRegistryMockRecorder) Unmarshal ¶
func (mr *MockGraphqlCallerRegistryMockRecorder) Unmarshal(desc, field, vars any) *MockGraphqlCallerRegistryUnmarshalCall
Unmarshal indicates an expected call of Unmarshal.
type MockGraphqlCallerRegistryUnmarshalCall ¶
MockGraphqlCallerRegistryUnmarshalCall wrap *gomock.Call
func (*MockGraphqlCallerRegistryUnmarshalCall) Do ¶
func (c *MockGraphqlCallerRegistryUnmarshalCall) Do(f func(protoreflect.MessageDescriptor, *ast.Field, map[string]any) (proto.Message, error)) *MockGraphqlCallerRegistryUnmarshalCall
Do rewrite *gomock.Call.Do
func (*MockGraphqlCallerRegistryUnmarshalCall) DoAndReturn ¶
func (c *MockGraphqlCallerRegistryUnmarshalCall) DoAndReturn(f func(protoreflect.MessageDescriptor, *ast.Field, map[string]any) (proto.Message, error)) *MockGraphqlCallerRegistryUnmarshalCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGraphqlCallerRegistryUnmarshalCall) Return ¶
func (c *MockGraphqlCallerRegistryUnmarshalCall) Return(arg0 proto.Message, arg1 error) *MockGraphqlCallerRegistryUnmarshalCall
Return rewrite *gomock.Call.Return
type MockGraphqlQueryer ¶
type MockGraphqlQueryer struct {
// contains filtered or unexported fields
}
MockGraphqlQueryer is a mock of GraphqlQueryer interface.
func NewMockGraphqlQueryer ¶
func NewMockGraphqlQueryer(ctrl *gomock.Controller) *MockGraphqlQueryer
NewMockGraphqlQueryer creates a new mock instance.
func (*MockGraphqlQueryer) EXPECT ¶
func (m *MockGraphqlQueryer) EXPECT() *MockGraphqlQueryerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGraphqlQueryer) Query ¶
func (m *MockGraphqlQueryer) Query(ctx context.Context, input *graphql.QueryInput, result any) error
Query mocks base method.
type MockGraphqlQueryerMockRecorder ¶
type MockGraphqlQueryerMockRecorder struct {
// contains filtered or unexported fields
}
MockGraphqlQueryerMockRecorder is the mock recorder for MockGraphqlQueryer.
func (*MockGraphqlQueryerMockRecorder) Query ¶
func (mr *MockGraphqlQueryerMockRecorder) Query(ctx, input, result any) *MockGraphqlQueryerQueryCall
Query indicates an expected call of Query.
type MockGraphqlQueryerQueryCall ¶
MockGraphqlQueryerQueryCall wrap *gomock.Call
func (*MockGraphqlQueryerQueryCall) Do ¶
func (c *MockGraphqlQueryerQueryCall) Do(f func(context.Context, *graphql.QueryInput, any) error) *MockGraphqlQueryerQueryCall
Do rewrite *gomock.Call.Do
func (*MockGraphqlQueryerQueryCall) DoAndReturn ¶
func (c *MockGraphqlQueryerQueryCall) DoAndReturn(f func(context.Context, *graphql.QueryInput, any) error) *MockGraphqlQueryerQueryCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGraphqlQueryerQueryCall) Return ¶
func (c *MockGraphqlQueryerQueryCall) Return(arg0 error) *MockGraphqlQueryerQueryCall
Return rewrite *gomock.Call.Return
type MockGraphqlReflection ¶
type MockGraphqlReflection struct {
// contains filtered or unexported fields
}
MockGraphqlReflection is a mock of GraphqlReflection interface.
func NewMockGraphqlReflection ¶
func NewMockGraphqlReflection(ctrl *gomock.Controller) *MockGraphqlReflection
NewMockGraphqlReflection creates a new mock instance.
func (*MockGraphqlReflection) EXPECT ¶
func (m *MockGraphqlReflection) EXPECT() *MockGraphqlReflectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockGraphqlReflection) ListPackages ¶
func (m *MockGraphqlReflection) ListPackages(ctx context.Context, cc grpc.ClientConnInterface) ([]protoreflect.FileDescriptor, error)
ListPackages mocks base method.
type MockGraphqlReflectionListPackagesCall ¶
MockGraphqlReflectionListPackagesCall wrap *gomock.Call
func (*MockGraphqlReflectionListPackagesCall) Do ¶
func (c *MockGraphqlReflectionListPackagesCall) Do(f func(context.Context, grpc.ClientConnInterface) ([]protoreflect.FileDescriptor, error)) *MockGraphqlReflectionListPackagesCall
Do rewrite *gomock.Call.Do
func (*MockGraphqlReflectionListPackagesCall) DoAndReturn ¶
func (c *MockGraphqlReflectionListPackagesCall) DoAndReturn(f func(context.Context, grpc.ClientConnInterface) ([]protoreflect.FileDescriptor, error)) *MockGraphqlReflectionListPackagesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockGraphqlReflectionListPackagesCall) Return ¶
func (c *MockGraphqlReflectionListPackagesCall) Return(arg0 []protoreflect.FileDescriptor, arg1 error) *MockGraphqlReflectionListPackagesCall
Return rewrite *gomock.Call.Return
type MockGraphqlReflectionMockRecorder ¶
type MockGraphqlReflectionMockRecorder struct {
// contains filtered or unexported fields
}
MockGraphqlReflectionMockRecorder is the mock recorder for MockGraphqlReflection.
func (*MockGraphqlReflectionMockRecorder) ListPackages ¶
func (mr *MockGraphqlReflectionMockRecorder) ListPackages(ctx, cc any) *MockGraphqlReflectionListPackagesCall
ListPackages indicates an expected call of ListPackages.
type MockHttpUpstream ¶
type MockHttpUpstream struct {
// contains filtered or unexported fields
}
MockHttpUpstream is a mock of HttpUpstream interface.
func NewMockHttpUpstream ¶
func NewMockHttpUpstream(ctrl *gomock.Controller) *MockHttpUpstream
NewMockHttpUpstream creates a new mock instance.
func (*MockHttpUpstream) EXPECT ¶
func (m *MockHttpUpstream) EXPECT() *MockHttpUpstreamMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHttpUpstreamInvoker ¶
type MockHttpUpstreamInvoker struct {
// contains filtered or unexported fields
}
MockHttpUpstreamInvoker is a mock of HttpUpstreamInvoker interface.
func NewMockHttpUpstreamInvoker ¶
func NewMockHttpUpstreamInvoker(ctrl *gomock.Controller) *MockHttpUpstreamInvoker
NewMockHttpUpstreamInvoker creates a new mock instance.
func (*MockHttpUpstreamInvoker) EXPECT ¶
func (m *MockHttpUpstreamInvoker) EXPECT() *MockHttpUpstreamInvokerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockHttpUpstreamInvokerInvokeCall ¶
MockHttpUpstreamInvokerInvokeCall wrap *gomock.Call
func (*MockHttpUpstreamInvokerInvokeCall) Do ¶
func (c *MockHttpUpstreamInvokerInvokeCall) Do(f func(context.Context, http.ResponseWriter, *http.Request, upstreamInfo, string, []string)) *MockHttpUpstreamInvokerInvokeCall
Do rewrite *gomock.Call.Do
func (*MockHttpUpstreamInvokerInvokeCall) DoAndReturn ¶
func (c *MockHttpUpstreamInvokerInvokeCall) DoAndReturn(f func(context.Context, http.ResponseWriter, *http.Request, upstreamInfo, string, []string)) *MockHttpUpstreamInvokerInvokeCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHttpUpstreamInvokerInvokeCall) Return ¶
func (c *MockHttpUpstreamInvokerInvokeCall) Return() *MockHttpUpstreamInvokerInvokeCall
Return rewrite *gomock.Call.Return
type MockHttpUpstreamInvokerMockRecorder ¶
type MockHttpUpstreamInvokerMockRecorder struct {
// contains filtered or unexported fields
}
MockHttpUpstreamInvokerMockRecorder is the mock recorder for MockHttpUpstreamInvoker.
func (*MockHttpUpstreamInvokerMockRecorder) Invoke ¶
func (mr *MockHttpUpstreamInvokerMockRecorder) Invoke(ctx, rw, r, upstream, rpcPath, pathNames any) *MockHttpUpstreamInvokerInvokeCall
Invoke indicates an expected call of Invoke.
type MockHttpUpstreamMockRecorder ¶
type MockHttpUpstreamMockRecorder struct {
// contains filtered or unexported fields
}
MockHttpUpstreamMockRecorder is the mock recorder for MockHttpUpstream.
func (*MockHttpUpstreamMockRecorder) Register ¶
func (mr *MockHttpUpstreamMockRecorder) Register(ctx, router any) *MockHttpUpstreamRegisterCall
Register indicates an expected call of Register.
type MockHttpUpstreamRegisterCall ¶
MockHttpUpstreamRegisterCall wrap *gomock.Call
func (*MockHttpUpstreamRegisterCall) Do ¶
func (c *MockHttpUpstreamRegisterCall) Do(f func(context.Context, *http.ServeMux)) *MockHttpUpstreamRegisterCall
Do rewrite *gomock.Call.Do
func (*MockHttpUpstreamRegisterCall) DoAndReturn ¶
func (c *MockHttpUpstreamRegisterCall) DoAndReturn(f func(context.Context, *http.ServeMux)) *MockHttpUpstreamRegisterCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockHttpUpstreamRegisterCall) Return ¶
func (c *MockHttpUpstreamRegisterCall) Return() *MockHttpUpstreamRegisterCall
Return rewrite *gomock.Call.Return