transport

package
v0.0.0-...-8603776 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPCluster

type HTTPCluster struct {
	// The address, port, and optional path where this node can receive requests. For example,
	// this might be something like "10.0.1.20:1234/service-requests".
	ListenURI string
}

func (*HTTPCluster) Address

func (c *HTTPCluster) Address() wss.Address

func (*HTTPCluster) SendGraphQLWSServiceRequest

func (c *HTTPCluster) SendGraphQLWSServiceRequest(addr wss.Address, r *subprotocol.GraphQLWSServiceRequest) error

func (*HTTPCluster) SendServiceRequest

func (c *HTTPCluster) SendServiceRequest(addr wss.Address, r *wss.ServiceRequest) error

type HTTPGraphQLWSService

type HTTPGraphQLWSService struct {
	Subprotocol *subprotocol.GraphQLWS
}

func (HTTPGraphQLWSService) ServeHTTP

type HTTPOrigin

type HTTPOrigin struct {
	URL string
}

func (*HTTPOrigin) Post

func (o *HTTPOrigin) Post(body interface{}) (*http.Response, error)

func (*HTTPOrigin) SendOriginRequest

func (o *HTTPOrigin) SendOriginRequest(r *wss.OriginRequest) error

type HTTPService

type HTTPService struct {
	Service *wss.Service
}

func (HTTPService) ServeHTTP

func (h HTTPService) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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