federationtesting

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryReviewsOfMe = `` /* 126-byte string literal not displayed */

)

Variables

View Source
var (
	//go:embed config.json
	RouterConfigJson []byte
	//go:embed accounts/graph/schema.graphqls
	AccountSDL []byte
	//go:embed products/graph/schema.graphqls
	ProductsSDL []byte
	//go:embed reviews/graph/schema.graphqls
	ReviewsSDL []byte
)

Functions

This section is empty.

Types

type FederationSetup

type FederationSetup struct {
	AccountsUpstreamServer *httptest.Server
	ProductsUpstreamServer *httptest.Server
	ReviewsUpstreamServer  *httptest.Server
	GatewayServer          *httptest.Server
}

func NewFederationSetup

func NewFederationSetup(addGateway ...func(s *FederationSetup) (*httptest.Server, error)) (*FederationSetup, error)

func (*FederationSetup) Close

func (f *FederationSetup) Close()

Directories

Path Synopsis
graph
This file will not be regenerated automatically.
This file will not be regenerated automatically.
httphandler
Package httphandler handles GraphQL HTTP Requests including WebSocket Upgrades.
Package httphandler handles GraphQL HTTP Requests including WebSocket Upgrades.
graph
This file will not be regenerated automatically.
This file will not be regenerated automatically.
graph
This file will not be regenerated automatically.
This file will not be regenerated automatically.

Jump to

Keyboard shortcuts

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