baztchannelendpoint

package
v0.0.0-...-78da9c4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 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 {
	SimpleServiceCallHandler *SimpleServiceCallHandler
	SimpleServiceEchoHandler *SimpleServiceEchoHandler
}

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 SimpleServiceCallHandler

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

SimpleServiceCallHandler is the handler for "SimpleService::Call".

func NewSimpleServiceCallHandler

func NewSimpleServiceCallHandler(deps *module.Dependencies) *SimpleServiceCallHandler

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

func (*SimpleServiceCallHandler) Handle

func (h *SimpleServiceCallHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	sr stream.Reader,
) (ctxRes context.Context, isSuccessful bool, response zanzibar.RWTStruct, headers map[string]string, e error)

Handle handles RPC call of "SimpleService::Call".

func (*SimpleServiceCallHandler) Register

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

type SimpleServiceEchoHandler

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

SimpleServiceEchoHandler is the handler for "SimpleService::Echo".

func NewSimpleServiceEchoHandler

func NewSimpleServiceEchoHandler(deps *module.Dependencies) *SimpleServiceEchoHandler

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

func (*SimpleServiceEchoHandler) Handle

func (h *SimpleServiceEchoHandler) Handle(
	ctx context.Context,
	reqHeaders map[string]string,
	sr stream.Reader,
) (ctxRes context.Context, isSuccessful bool, response zanzibar.RWTStruct, headers map[string]string, e error)

Handle handles RPC call of "SimpleService::Echo".

func (*SimpleServiceEchoHandler) Register

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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