grpctest

package
v2.14.1 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: MIT Imports: 24 Imported by: 2

README

grpctest Package

The grpctest package provides a comprehensive mock gRPC service implementation for testing the grpc_datasource functionality in graphql-go-tools. It includes a complete GraphQL schema, Protocol Buffers definitions, and mock service implementations to facilitate testing of gRPC-to-GraphQL integration.

Overview

This package contains:

  • Mock gRPC Service: A fully functional mock implementation of a product service with various data types and operations
  • GraphQL Schema: A comprehensive schema covering various GraphQL features including queries, mutations, unions, interfaces, and complex nested types
  • Protocol Buffers: Complete .proto definitions with generated Go code
  • Field Mappings: Detailed mappings between GraphQL fields and gRPC message fields
  • Test Utilities: Helper functions for schema loading, validation, and test data generation

Key Components

MockService (mockservice.go)

The core mock gRPC service implementation that provides:

  • Entity Lookups: Product, Storage, and Warehouse entity resolution by ID
  • Query Operations: Various query types including filtering, pagination, and complex nested queries
  • Mutation Operations: Create and update operations for different entity types
  • Field Resolvers: Custom field resolution for computed fields like productCount, popularityScore, etc.
  • Union Types: Support for GraphQL unions (e.g., SearchResult, ActionResult, Animal)
  • Nullable Fields: Comprehensive testing of optional/nullable field handling
  • Complex Lists: Nested list structures and bulk operations
Schema Management (schema.go)

Provides utilities for:

  • Loading and parsing GraphQL schemas from embedded files
  • Schema validation and transformation
  • Protocol buffer schema access
  • Test-friendly schema loading functions
Field Mappings (mapping/mapping.go)

Defines the complete mapping between GraphQL and gRPC:

  • Query/Mutation RPCs: Maps GraphQL operations to gRPC service methods
  • Field Mappings: Maps GraphQL field names to protobuf field names
  • Argument Mappings: Maps GraphQL arguments to gRPC request parameters
  • Entity Lookups: Configuration for entity resolution patterns
  • Enum Mappings: GraphQL enum to protobuf enum value mappings

Code Generation

The package includes tools for regenerating Protocol Buffer definitions:

# Generate Go code from .proto files
make generate-proto

# Regenerate .proto from GraphQL schema (requires wgc CLI)
make regenerate-proto

# Regenerate .proto from GraphQL schema locally (requires cosmo to be checked out in the same parent directory as graphql-go-tools)
make regenerate-proto-local

# Build plugin service
make build-plugin

File Structure

grpctest/
├── Readme.md                 # This documentation
├── Makefile                  # Build and generation commands
├── mockservice.go            # Main mock service implementation
├── schema.go                 # Schema loading utilities
├── product.proto             # Protocol buffer definitions
├── mapping/
│   └── mapping.go           # GraphQL-to-gRPC field mappings
├── productv1/               # Generated protobuf Go code
│   ├── product.pb.go
│   └── product_grpc.pb.go
├── testdata/                # Test schemas and data
│   ├── products.graphqls    # GraphQL schema
├── plugin/                  # Plugin service implementation
└── cmd/                     # Command-line utilities

Contributing

When adding new test cases or extending the mock service:

  1. Update the GraphQL schema in testdata/products.graphqls
  2. Regenerate the Protocol Buffer definitions using make regenerate-proto
  3. Update the mock service implementation in mockservice.go
  4. Add corresponding field mappings in mapping/mapping.go
  5. Update field configurations in schema.go if needed

Integration with grpc_datasource

This package is specifically designed to test the grpc_datasource implementation and provides comprehensive coverage of:

  • Request/response mapping
  • Field resolution patterns
  • Error handling scenarios
  • Performance characteristics
  • Edge cases and boundary conditions

The mock service implements realistic data patterns and edge cases that help ensure the gRPC data source implementation is robust and handles real-world scenarios correctly.

Regenerate all files

To make generating super simple, you can run the following command:

# Generate all files
make generate-all

# Generate all files using the local wgc cli
make generate-all-local

This will regenerate the .proto file, generate the mapping.go file, and regenerate the protobuf Go code.

Generating the mapping.go file

The mapping.go file is generated using the mapping_helper command. This command takes a mapping.json file and generates the mapping.go file.

You can either run the mapping_helper command manually or use the make generate-mapping-code command. The recommended way is to use the Makefile.

Use Makefile
# Regenerate .proto and mapping files 
make regenerate-proto
# or make regenerate-proto-local (if you need to test local changes in protographic)

# Generate the mapping.go file
make generate-mapping-code

This will run the generate-mapping-code command with the correct arguments.

Setup a Run Configuration in VSCode

This is mostly useful for debugging the mapping helper.

{
    "name": "Launch mapping helper",
    "type": "go",
    "request": "launch",
    "mode": "debug",
    "program": "${workspaceFolder}/v2/pkg/grpctest/cmd/mapping_helper/main.go",
    "args": [
        "${workspaceFolder}/v2/pkg/grpctest/testdata/mapping.json",
        "${workspaceFolder}/v2/pkg/grpctest/mapping/mapping.go"
    ],
    "cwd": "${workspaceFolder}/v2/pkg/grpctest/cmd/mapping_helper"
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataSourceMetadata

func GetDataSourceMetadata() *plan.DataSourceMetadata

func GetFieldConfigurations

func GetFieldConfigurations() plan.FieldConfigurations

func GraphQLSchema

func GraphQLSchema() (ast.Document, error)

func GraphQLSchemaWithoutBaseDefinitions

func GraphQLSchemaWithoutBaseDefinitions() (ast.Document, error)

func MustGraphQLSchema

func MustGraphQLSchema(t testing.TB) ast.Document

func MustProtoSchema

func MustProtoSchema(t testing.TB) string

func ProtoSchema

func ProtoSchema() (string, error)

Types

type MockService

type MockService struct {
	productv1.UnimplementedProductServiceServer
}

func (*MockService) LookupWarehouseById

LookupWarehouseById implements productv1.ProductServiceServer.

func (*MockService) MutationCreateAuthor

Author mutation implementations

func (*MockService) MutationCreateBlogPost

BlogPost mutation implementations

func (*MockService) MutationCreateNullableFieldsType

MutationCreateNullableFieldsType implements productv1.ProductServiceServer.

func (*MockService) MutationCreateUser

Implementation for CreateUser mutation

func (*MockService) MutationPerformAction

MutationPerformAction implements productv1.ProductServiceServer.

func (*MockService) MutationUpdateNullableFieldsType

MutationUpdateNullableFieldsType implements productv1.ProductServiceServer.

func (*MockService) QueryAllNullableFieldsTypes

QueryAllNullableFieldsTypes implements productv1.ProductServiceServer.

func (*MockService) QueryAllPets

func (*MockService) QueryAuthor

Author query implementations

func (*MockService) QueryBlogPost

BlogPost query implementations

func (*MockService) QueryBulkSearchAuthors

Bulk operation implementations

func (*MockService) QueryCalculateTotals

Implementation for QueryCalculateTotals

func (*MockService) QueryCategories

Implementation for QueryCategories

func (*MockService) QueryCategoriesByKind

Implementation for QueryCategoriesByKind

func (*MockService) QueryCategory

Implementation for QueryCategory

func (*MockService) QueryConditionalSearch

QueryConditionalSearch implements productv1.ProductServiceServer. It counts leaf conditions (those with both key and value set) recursively and returns a single result.

func (*MockService) QueryFilterCategories

Implementation for QueryFilterCategories

func (*MockService) QueryNullableFieldsType

QueryNullableFieldsType implements productv1.ProductServiceServer.

func (*MockService) QueryNullableFieldsTypeById

QueryNullableFieldsTypeById implements productv1.ProductServiceServer.

func (*MockService) QueryNullableFieldsTypeWithFilter

QueryNullableFieldsTypeWithFilter implements productv1.ProductServiceServer.

func (*MockService) QueryRandomSearchResult

QueryRandomSearchResult implements productv1.ProductServiceServer.

func (*MockService) QuerySearch

QuerySearch implements productv1.ProductServiceServer.

func (*MockService) QueryTestContainer

QueryTestContainer implements productv1.ProductServiceServer.

func (*MockService) QueryTestContainers

QueryTestContainers implements productv1.ProductServiceServer.

func (*MockService) QueryUser

func (*MockService) QueryUsers

func (*MockService) RequireStorageCategoryInfoSummaryById

RequireStorageCategoryInfoSummaryById implements productv1.ProductServiceServer. Returns a summary string from nested category info containing an enum field.

func (*MockService) RequireStorageDeepItemInfoById

RequireStorageDeepItemInfoById implements productv1.ProductServiceServer. Extracts nested abstract type through concrete intermediary (handler → assignedItem).

func (*MockService) RequireStorageFilteredTagSummaryById

RequireStorageFilteredTagSummaryById implements productv1.ProductServiceServer. Returns a comma separated list of tags having a specific prefix as given by field argument "prefix".

func (*MockService) RequireStorageItemHandlerInfoById

RequireStorageItemHandlerInfoById implements productv1.ProductServiceServer. Extracts handler name from within interface fragments.

func (*MockService) RequireStorageItemInfoById

RequireStorageItemInfoById implements productv1.ProductServiceServer. Extracts primaryItem interface from fields and formats a summary string.

func (*MockService) RequireStorageItemSpecsInfoById

RequireStorageItemSpecsInfoById implements productv1.ProductServiceServer. Extracts specs and dimensions from deep concrete nesting inside interface fragments.

func (*MockService) RequireStorageKindSummaryById

RequireStorageKindSummaryById implements productv1.ProductServiceServer. Returns the enum value as a string summary.

func (*MockService) RequireStorageMetadataScoreById

RequireStorageMetadataScoreById implements productv1.ProductServiceServer.

func (*MockService) RequireStorageMultiFilteredTagSummaryById

RequireStorageMultiFilteredTagSummaryById implements productv1.ProductServiceServer. Returns a comma separated list of tags matching any of the given prefixes, capped at maxResults.

func (*MockService) RequireStorageNullableFilteredTagSummaryById

RequireStorageNullableFilteredTagSummaryById implements productv1.ProductServiceServer. Returns a comma separated list of tags matching an optional prefix. If prefix is nil, all tags are returned.

func (*MockService) RequireStorageOperationReportById

RequireStorageOperationReportById implements productv1.ProductServiceServer. Extracts lastStorageOperation union from fields and formats a report string.

func (*MockService) RequireStorageOptionalProcessedMetadataById

RequireStorageOptionalProcessedMetadataById implements productv1.ProductServiceServer. Returns a nullable complex type (StorageMetadata).

func (*MockService) RequireStorageOptionalProcessedTagsById

RequireStorageOptionalProcessedTagsById implements productv1.ProductServiceServer. Returns a nullable list of strings.

func (*MockService) RequireStorageOptionalTagSummaryById

RequireStorageOptionalTagSummaryById implements productv1.ProductServiceServer.

func (*MockService) RequireStorageProcessedMetadataById

RequireStorageProcessedMetadataById implements productv1.ProductServiceServer. Returns a complex type (StorageMetadata) with processed values.

func (*MockService) RequireStorageProcessedMetadataHistoryById

RequireStorageProcessedMetadataHistoryById implements productv1.ProductServiceServer. Returns a list of complex types (StorageMetadata).

func (*MockService) RequireStorageProcessedTagsById

RequireStorageProcessedTagsById implements productv1.ProductServiceServer. Returns a list of strings with processed tags.

func (*MockService) RequireStorageSecuritySummaryById

RequireStorageSecuritySummaryById implements productv1.ProductServiceServer. Extracts securitySetup (concrete wrapping abstract) and formats a summary.

func (*MockService) RequireStorageStockHealthScoreById

RequireStorageStockHealthScoreById implements productv1.ProductServiceServer.

func (*MockService) RequireStorageTagSummaryById

RequireStorageTagSummaryById implements productv1.ProductServiceServer.

func (*MockService) RequireWarehouseStockHealthScoreById

RequireWarehouseStockHealthScoreById implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryActiveSubcategories

ResolveCategoryActiveSubcategories implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryCategoryMetrics

ResolveCategoryCategoryMetrics implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryCategoryStatus

ResolveCategoryCategoryStatus implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryChildCategories

ResolveCategoryChildCategories implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryMascot

ResolveCategoryMascot implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryMetricsAverageScore

ResolveCategoryMetricsAverageScore implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryMetricsNormalizedScore

ResolveCategoryMetricsNormalizedScore implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryMetricsRelatedCategory

ResolveCategoryMetricsRelatedCategory implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryOptionalCategories

ResolveCategoryOptionalCategories implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryPopularityScore

ResolveCategoryPopularityScore implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryProductCount

ResolveCategoryProductCount implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryTopSubcategory

ResolveCategoryTopSubcategory implements productv1.ProductServiceServer.

func (*MockService) ResolveCategoryTotalProducts

ResolveCategoryTotalProducts implements productv1.ProductServiceServer.

func (*MockService) ResolveProductMascotRecommendation

ResolveProductMascotRecommendation implements productv1.ProductServiceServer.

func (*MockService) ResolveProductProductDetails

ResolveProductProductDetails implements productv1.ProductServiceServer.

func (*MockService) ResolveProductRecommendedCategory

ResolveProductRecommendedCategory implements productv1.ProductServiceServer.

func (*MockService) ResolveProductShippingEstimate

ResolveProductShippingEstimate implements productv1.ProductServiceServer.

func (*MockService) ResolveProductStockStatus

ResolveProductStockStatus implements productv1.ProductServiceServer.

func (*MockService) ResolveStorageLinkedStorages

ResolveStorageLinkedStorages implements productv1.ProductServiceServer.

func (*MockService) ResolveStorageNearbyStorages

ResolveStorageNearbyStorages implements productv1.ProductServiceServer.

func (*MockService) ResolveStorageStorageStatus

ResolveStorageStorageStatus implements productv1.ProductServiceServer.

func (*MockService) ResolveSubcategoryItemCount

ResolveSubcategoryItemCount implements productv1.ProductServiceServer.

func (*MockService) ResolveSubcategoryParentCategory

ResolveSubcategoryParentCategory implements productv1.ProductServiceServer.

func (*MockService) ResolveTestContainerDetails

ResolveTestContainerDetails implements productv1.ProductServiceServer.

type MockServiceConnect added in v2.11.0

type MockServiceConnect struct {
	productv1connect.UnimplementedProductServiceHandler
	// contains filtered or unexported fields
}

MockServiceConnect adapts the gRPC MockService onto the ConnectRPC handler interface emitted by protoc-gen-connect-go. The same backing implementation can therefore serve Connect, gRPC, and gRPC-Web from a single HTTP handler, which lets the grpc_datasource tests exercise the data source against either transport without duplicating fixtures.

func NewMockServiceConnect added in v2.11.0

func NewMockServiceConnect(inner *MockService) *MockServiceConnect

NewMockServiceConnect wraps the supplied MockService.

func (*MockServiceConnect) LookupProductById added in v2.11.0

LookupProductById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) LookupStorageById added in v2.11.0

LookupStorageById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) LookupWarehouseById added in v2.11.0

LookupWarehouseById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationBulkCreateAuthors added in v2.11.0

MutationBulkCreateAuthors forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationBulkCreateBlogPosts added in v2.11.0

MutationBulkCreateBlogPosts forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationBulkUpdateAuthors added in v2.11.0

MutationBulkUpdateAuthors forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationBulkUpdateBlogPosts added in v2.11.0

MutationBulkUpdateBlogPosts forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationCreateAuthor added in v2.11.0

MutationCreateAuthor forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationCreateBlogPost added in v2.11.0

MutationCreateBlogPost forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationCreateNullableFieldsType added in v2.11.0

MutationCreateNullableFieldsType forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationCreateUser added in v2.11.0

MutationCreateUser forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationPerformAction added in v2.11.0

MutationPerformAction forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationUpdateAuthor added in v2.11.0

MutationUpdateAuthor forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationUpdateBlogPost added in v2.11.0

MutationUpdateBlogPost forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) MutationUpdateNullableFieldsType added in v2.11.0

MutationUpdateNullableFieldsType forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryAllAuthors added in v2.11.0

QueryAllAuthors forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryAllBlogPosts added in v2.11.0

QueryAllBlogPosts forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryAllNullableFieldsTypes added in v2.11.0

QueryAllNullableFieldsTypes forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryAllPets added in v2.11.0

QueryAllPets forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryAuthor added in v2.11.0

QueryAuthor forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryAuthorById added in v2.11.0

QueryAuthorById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryAuthorsWithFilter added in v2.11.0

QueryAuthorsWithFilter forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryBlogPost added in v2.11.0

QueryBlogPost forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryBlogPostById added in v2.11.0

QueryBlogPostById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryBlogPostsWithFilter added in v2.11.0

QueryBlogPostsWithFilter forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryBulkSearchAuthors added in v2.11.0

QueryBulkSearchAuthors forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryBulkSearchBlogPosts added in v2.11.0

QueryBulkSearchBlogPosts forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryCalculateTotals added in v2.11.0

QueryCalculateTotals forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryCategories added in v2.11.0

QueryCategories forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryCategoriesByKind added in v2.11.0

QueryCategoriesByKind forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryCategoriesByKinds added in v2.11.0

QueryCategoriesByKinds forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryCategory added in v2.11.0

QueryCategory forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryComplexFilterType added in v2.11.0

QueryComplexFilterType forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryConditionalSearch added in v2.11.0

QueryConditionalSearch forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryFilterCategories added in v2.11.0

QueryFilterCategories forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryNestedType added in v2.11.0

QueryNestedType forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryNullableFieldsType added in v2.11.0

QueryNullableFieldsType forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryNullableFieldsTypeById added in v2.11.0

QueryNullableFieldsTypeById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryNullableFieldsTypeWithFilter added in v2.11.0

QueryNullableFieldsTypeWithFilter forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryRandomPet added in v2.11.0

QueryRandomPet forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryRandomSearchResult added in v2.11.0

QueryRandomSearchResult forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryRecursiveType added in v2.11.0

QueryRecursiveType forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QuerySearch added in v2.11.0

QuerySearch forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryTestContainer added in v2.11.0

QueryTestContainer forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryTestContainers added in v2.11.0

QueryTestContainers forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryTypeFilterWithArguments added in v2.11.0

QueryTypeFilterWithArguments forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryTypeWithMultipleFilterFields added in v2.11.0

QueryTypeWithMultipleFilterFields forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryUser added in v2.11.0

QueryUser forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) QueryUsers added in v2.11.0

QueryUsers forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageCategoryInfoSummaryById added in v2.11.0

RequireStorageCategoryInfoSummaryById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageDeepItemInfoById added in v2.11.0

RequireStorageDeepItemInfoById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageFilteredTagSummaryById added in v2.11.0

RequireStorageFilteredTagSummaryById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageItemHandlerInfoById added in v2.11.0

RequireStorageItemHandlerInfoById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageItemInfoById added in v2.11.0

RequireStorageItemInfoById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageItemSpecsInfoById added in v2.11.0

RequireStorageItemSpecsInfoById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageKindSummaryById added in v2.11.0

RequireStorageKindSummaryById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageMetadataScoreById added in v2.11.0

RequireStorageMetadataScoreById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageMultiFilteredTagSummaryById added in v2.11.0

RequireStorageMultiFilteredTagSummaryById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageNullableFilteredTagSummaryById added in v2.11.0

RequireStorageNullableFilteredTagSummaryById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageOperationReportById added in v2.11.0

RequireStorageOperationReportById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageOptionalProcessedMetadataById added in v2.11.0

RequireStorageOptionalProcessedMetadataById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageOptionalProcessedTagsById added in v2.11.0

RequireStorageOptionalProcessedTagsById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageOptionalTagSummaryById added in v2.11.0

RequireStorageOptionalTagSummaryById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageProcessedMetadataById added in v2.11.0

RequireStorageProcessedMetadataById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageProcessedMetadataHistoryById added in v2.11.0

RequireStorageProcessedMetadataHistoryById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageProcessedTagsById added in v2.11.0

RequireStorageProcessedTagsById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageSecuritySummaryById added in v2.11.0

RequireStorageSecuritySummaryById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageStockHealthScoreById added in v2.11.0

RequireStorageStockHealthScoreById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireStorageTagSummaryById added in v2.11.0

RequireStorageTagSummaryById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) RequireWarehouseStockHealthScoreById added in v2.11.0

RequireWarehouseStockHealthScoreById forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryActiveSubcategories added in v2.11.0

ResolveCategoryActiveSubcategories forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryCategoryMetrics added in v2.11.0

ResolveCategoryCategoryMetrics forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryCategoryStatus added in v2.11.0

ResolveCategoryCategoryStatus forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryChildCategories added in v2.11.0

ResolveCategoryChildCategories forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryMascot added in v2.11.0

ResolveCategoryMascot forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryMetricsAverageScore added in v2.11.0

ResolveCategoryMetricsAverageScore forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryMetricsNormalizedScore added in v2.11.0

ResolveCategoryMetricsNormalizedScore forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryMetricsRelatedCategory added in v2.11.0

ResolveCategoryMetricsRelatedCategory forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryOptionalCategories added in v2.11.0

ResolveCategoryOptionalCategories forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryPopularityScore added in v2.11.0

ResolveCategoryPopularityScore forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryProductCount added in v2.11.0

ResolveCategoryProductCount forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryTopSubcategory added in v2.11.0

ResolveCategoryTopSubcategory forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveCategoryTotalProducts added in v2.11.0

ResolveCategoryTotalProducts forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveProductMascotRecommendation added in v2.11.0

ResolveProductMascotRecommendation forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveProductProductDetails added in v2.11.0

ResolveProductProductDetails forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveProductRecommendedCategory added in v2.11.0

ResolveProductRecommendedCategory forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveProductShippingEstimate added in v2.11.0

ResolveProductShippingEstimate forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveProductStockStatus added in v2.11.0

ResolveProductStockStatus forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveStorageLinkedStorages added in v2.11.0

ResolveStorageLinkedStorages forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveStorageNearbyStorages added in v2.11.0

ResolveStorageNearbyStorages forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveStorageStorageStatus added in v2.11.0

ResolveStorageStorageStatus forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveSubcategoryItemCount added in v2.11.0

ResolveSubcategoryItemCount forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveSubcategoryParentCategory added in v2.11.0

ResolveSubcategoryParentCategory forwards the Connect call to the gRPC implementation.

func (*MockServiceConnect) ResolveTestContainerDetails added in v2.11.0

ResolveTestContainerDetails forwards the Connect call to the gRPC implementation.

Directories

Path Synopsis
cmd
mapping_helper command
mapping_helper is a tool that generates a mapping.go file from a mapping.json file.
mapping_helper is a tool that generates a mapping.go file from a mapping.json file.

Jump to

Keyboard shortcuts

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