Documentation ¶
Index ¶
- type Endpoint
- type EndpointHandlers
- type SimpleServiceCallHandler
- type SimpleServiceCompareHandler
- type SimpleServiceGetProfileHandler
- type SimpleServiceHeaderSchemaHandler
- type SimpleServicePingHandler
- type SimpleServiceSillyNoopHandler
- type SimpleServiceTransHandler
- type SimpleServiceTransHeadersHandler
- type SimpleServiceTransHeadersNoReqHandler
- type SimpleServiceTransHeadersTypeHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
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
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 ¶
func (h *SimpleServiceCallHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, )
HandleRequest handles "/baz/call".
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 ¶
func (h *SimpleServiceCompareHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, )
HandleRequest handles "/baz/compare".
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 ¶
func (h *SimpleServiceGetProfileHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, )
HandleRequest handles "/baz/get-profile".
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 ¶
func (h *SimpleServiceHeaderSchemaHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, )
HandleRequest handles "/baz/header-schema".
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 ¶
func (h *SimpleServicePingHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, )
HandleRequest handles "/baz/ping".
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 ¶
func (h *SimpleServiceSillyNoopHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, )
HandleRequest handles "/baz/silly-noop".
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 ¶
func (h *SimpleServiceTransHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, )
HandleRequest handles "/baz/trans".
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 ¶
func (h *SimpleServiceTransHeadersHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, )
HandleRequest handles "/baz/trans-headers".
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 ¶
func (h *SimpleServiceTransHeadersNoReqHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, )
HandleRequest handles "/baz/trans-headers-no-req".
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 ¶
func (h *SimpleServiceTransHeadersTypeHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, )
HandleRequest handles "/baz/trans-header-type".
Source Files ¶
- baz_simpleservice_method_call.go
- baz_simpleservice_method_compare.go
- baz_simpleservice_method_getprofile.go
- baz_simpleservice_method_headerschema.go
- baz_simpleservice_method_ping.go
- baz_simpleservice_method_sillynoop.go
- baz_simpleservice_method_trans.go
- baz_simpleservice_method_transheaders.go
- baz_simpleservice_method_transheadersnoreq.go
- baz_simpleservice_method_transheaderstype.go
- baz_structs.go
- endpoint.go