multiendpoint

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint interface {
	Register(*zanzibar.Gateway) error
}

Endpoint registers a request handler on a gateway

func NewEndpoint

func NewEndpoint(deps *module.Dependencies) Endpoint

NewEndpoint returns a collection of endpoints that can be registered on a gateway

type EndpointHandlers

type EndpointHandlers struct {
	ServiceAFrontHelloHandler *ServiceAFrontHelloHandler
	ServiceBFrontHelloHandler *ServiceBFrontHelloHandler
}

EndpointHandlers is a collection of individual endpoint handlers

func (*EndpointHandlers) Register

func (handlers *EndpointHandlers) Register(gateway *zanzibar.Gateway) error

Register registers the endpoint handlers with the gateway

type ServiceAFrontHelloHandler

type ServiceAFrontHelloHandler struct {
	Dependencies *module.Dependencies
	// contains filtered or unexported fields
}

ServiceAFrontHelloHandler is the handler for "/multi/serviceA_f/hello"

func NewServiceAFrontHelloHandler

func NewServiceAFrontHelloHandler(deps *module.Dependencies) *ServiceAFrontHelloHandler

NewServiceAFrontHelloHandler creates a handler

func (*ServiceAFrontHelloHandler) HandleRequest

HandleRequest handles "/multi/serviceA_f/hello".

func (*ServiceAFrontHelloHandler) Register

Register adds the http handler to the gateway's http router

type ServiceBFrontHelloHandler

type ServiceBFrontHelloHandler struct {
	Dependencies *module.Dependencies
	// contains filtered or unexported fields
}

ServiceBFrontHelloHandler is the handler for "/multi/serviceB_f/hello"

func NewServiceBFrontHelloHandler

func NewServiceBFrontHelloHandler(deps *module.Dependencies) *ServiceBFrontHelloHandler

NewServiceBFrontHelloHandler creates a handler

func (*ServiceBFrontHelloHandler) HandleRequest

HandleRequest handles "/multi/serviceB_f/hello".

func (*ServiceBFrontHelloHandler) Register

Register adds the http handler to the gateway's http router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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