federationtesting

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

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

)

Variables

This section is empty.

Functions

func LoadTestingSubgraphSDL

func LoadTestingSubgraphSDL(upstream Upstream) ([]byte, error)

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) *FederationSetup

func (*FederationSetup) Close

func (f *FederationSetup) Close()

type Upstream

type Upstream string
const (
	UpstreamAccounts Upstream = "accounts"
	UpstreamProducts Upstream = "products"
	UpstreamReviews  Upstream = "reviews"
)

Directories

Path Synopsis
graph
This file will not be regenerated automatically.
This file will not be regenerated automatically.
http
Package http handles GraphQL HTTP Requests including WebSocket Upgrades.
Package http 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