bounceendpoint

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BounceBounceHandler

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

BounceBounceHandler is the handler for "Bounce::bounce".

func NewBounceBounceHandler

func NewBounceBounceHandler(deps *module.Dependencies) *BounceBounceHandler

NewBounceBounceHandler creates a handler to be registered with a thrift server.

func (*BounceBounceHandler) Handle

func (h *BounceBounceHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	wireValue *wire.Value,
) (isSuccessful bool, response zanzibar.RWTStruct, headers map[string]string, e error)

Handle handles RPC call of "Bounce::bounce".

func (*BounceBounceHandler) Register

func (h *BounceBounceHandler) Register(g *zanzibar.Gateway) error

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

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 {
	BounceBounceHandler *BounceBounceHandler
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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