bazendpoint

package
v2.0.0-RC2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 18 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
	SimpleServiceCompareHandler           *SimpleServiceCompareHandler
	SimpleServiceGetProfileHandler        *SimpleServiceGetProfileHandler
	SimpleServiceHeaderSchemaHandler      *SimpleServiceHeaderSchemaHandler
	SimpleServicePingHandler              *SimpleServicePingHandler
	SimpleServiceSillyNoopHandler         *SimpleServiceSillyNoopHandler
	SimpleServiceTransHandler             *SimpleServiceTransHandler
	SimpleServiceTransHeadersHandler      *SimpleServiceTransHeadersHandler
	SimpleServiceTransHeadersNoReqHandler *SimpleServiceTransHeadersNoReqHandler
	SimpleServiceTransHeadersTypeHandler  *SimpleServiceTransHeadersTypeHandler
}

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 {
	Dependencies *module.Dependencies
	// contains filtered or unexported fields
}

SimpleServiceCallHandler is the handler for "/baz/call"

func NewSimpleServiceCallHandler

func NewSimpleServiceCallHandler(deps *module.Dependencies) *SimpleServiceCallHandler

NewSimpleServiceCallHandler creates a handler

func (*SimpleServiceCallHandler) HandleRequest

HandleRequest handles "/baz/call".

func (*SimpleServiceCallHandler) Register

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

type SimpleServiceCompareHandler

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

SimpleServiceCompareHandler is the handler for "/baz/compare"

func NewSimpleServiceCompareHandler

func NewSimpleServiceCompareHandler(deps *module.Dependencies) *SimpleServiceCompareHandler

NewSimpleServiceCompareHandler creates a handler

func (*SimpleServiceCompareHandler) HandleRequest

HandleRequest handles "/baz/compare".

func (*SimpleServiceCompareHandler) Register

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

type SimpleServiceGetProfileHandler

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

SimpleServiceGetProfileHandler is the handler for "/baz/get-profile"

func NewSimpleServiceGetProfileHandler

func NewSimpleServiceGetProfileHandler(deps *module.Dependencies) *SimpleServiceGetProfileHandler

NewSimpleServiceGetProfileHandler creates a handler

func (*SimpleServiceGetProfileHandler) HandleRequest

HandleRequest handles "/baz/get-profile".

func (*SimpleServiceGetProfileHandler) Register

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

type SimpleServiceHeaderSchemaHandler

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

SimpleServiceHeaderSchemaHandler is the handler for "/baz/header-schema"

func NewSimpleServiceHeaderSchemaHandler

func NewSimpleServiceHeaderSchemaHandler(deps *module.Dependencies) *SimpleServiceHeaderSchemaHandler

NewSimpleServiceHeaderSchemaHandler creates a handler

func (*SimpleServiceHeaderSchemaHandler) HandleRequest

HandleRequest handles "/baz/header-schema".

func (*SimpleServiceHeaderSchemaHandler) Register

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

type SimpleServicePingHandler

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

SimpleServicePingHandler is the handler for "/baz/ping"

func NewSimpleServicePingHandler

func NewSimpleServicePingHandler(deps *module.Dependencies) *SimpleServicePingHandler

NewSimpleServicePingHandler creates a handler

func (*SimpleServicePingHandler) HandleRequest

HandleRequest handles "/baz/ping".

func (*SimpleServicePingHandler) Register

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

type SimpleServiceSillyNoopHandler

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

SimpleServiceSillyNoopHandler is the handler for "/baz/silly-noop"

func NewSimpleServiceSillyNoopHandler

func NewSimpleServiceSillyNoopHandler(deps *module.Dependencies) *SimpleServiceSillyNoopHandler

NewSimpleServiceSillyNoopHandler creates a handler

func (*SimpleServiceSillyNoopHandler) HandleRequest

HandleRequest handles "/baz/silly-noop".

func (*SimpleServiceSillyNoopHandler) Register

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

type SimpleServiceTransHandler

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

SimpleServiceTransHandler is the handler for "/baz/trans"

func NewSimpleServiceTransHandler

func NewSimpleServiceTransHandler(deps *module.Dependencies) *SimpleServiceTransHandler

NewSimpleServiceTransHandler creates a handler

func (*SimpleServiceTransHandler) HandleRequest

HandleRequest handles "/baz/trans".

func (*SimpleServiceTransHandler) Register

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

type SimpleServiceTransHeadersHandler

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

SimpleServiceTransHeadersHandler is the handler for "/baz/trans-headers"

func NewSimpleServiceTransHeadersHandler

func NewSimpleServiceTransHeadersHandler(deps *module.Dependencies) *SimpleServiceTransHeadersHandler

NewSimpleServiceTransHeadersHandler creates a handler

func (*SimpleServiceTransHeadersHandler) HandleRequest

HandleRequest handles "/baz/trans-headers".

func (*SimpleServiceTransHeadersHandler) Register

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

type SimpleServiceTransHeadersNoReqHandler

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

SimpleServiceTransHeadersNoReqHandler is the handler for "/baz/trans-headers-no-req"

func NewSimpleServiceTransHeadersNoReqHandler

func NewSimpleServiceTransHeadersNoReqHandler(deps *module.Dependencies) *SimpleServiceTransHeadersNoReqHandler

NewSimpleServiceTransHeadersNoReqHandler creates a handler

func (*SimpleServiceTransHeadersNoReqHandler) HandleRequest

HandleRequest handles "/baz/trans-headers-no-req".

func (*SimpleServiceTransHeadersNoReqHandler) Register

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

type SimpleServiceTransHeadersTypeHandler

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

SimpleServiceTransHeadersTypeHandler is the handler for "/baz/trans-header-type"

func NewSimpleServiceTransHeadersTypeHandler

func NewSimpleServiceTransHeadersTypeHandler(deps *module.Dependencies) *SimpleServiceTransHeadersTypeHandler

NewSimpleServiceTransHeadersTypeHandler creates a handler

func (*SimpleServiceTransHeadersTypeHandler) HandleRequest

HandleRequest handles "/baz/trans-header-type".

func (*SimpleServiceTransHeadersTypeHandler) 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