Back to

Package appdemoabcendpoint

Latest Go to latest

The highest tagged major version is .

Published: Mar 4, 2020 | License: MIT | Module:


type AppDemoServiceCallHandler

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

AppDemoServiceCallHandler is the handler for "AppDemoService::Call".

func NewAppDemoServiceCallHandler

func NewAppDemoServiceCallHandler(deps *module.Dependencies) *AppDemoServiceCallHandler

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

func (*AppDemoServiceCallHandler) Handle

func (h *AppDemoServiceCallHandler) 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 "AppDemoService::Call".

func (*AppDemoServiceCallHandler) Register

func (h *AppDemoServiceCallHandler) 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 {
	AppDemoServiceCallHandler *AppDemoServiceCallHandler

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

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier