Documentation ¶
Index ¶
- type BarArgNotStructHandler
- type BarArgWithHeadersHandler
- type BarArgWithManyQueryParamsHandler
- type BarArgWithNearDupQueryParamsHandler
- type BarArgWithNestedQueryParamsHandler
- type BarArgWithParamsAndDuplicateFieldsHandler
- type BarArgWithParamsHandler
- type BarArgWithQueryHeaderHandler
- type BarArgWithQueryParamsHandler
- type BarDeleteWithBodyHandler
- type BarHelloWorldHandler
- type BarListAndEnumHandler
- type BarMissingArgHandler
- type BarNoRequestHandler
- type BarNormalHandler
- type BarTooManyArgsHandler
- type Endpoint
- type EndpointHandlers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BarArgNotStructHandler ¶
type BarArgNotStructHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarArgNotStructHandler is the handler for "/bar/arg-not-struct-path"
func NewBarArgNotStructHandler ¶
func NewBarArgNotStructHandler(deps *module.Dependencies) *BarArgNotStructHandler
NewBarArgNotStructHandler creates a handler
func (*BarArgNotStructHandler) HandleRequest ¶
func (h *BarArgNotStructHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/arg-not-struct-path".
type BarArgWithHeadersHandler ¶
type BarArgWithHeadersHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarArgWithHeadersHandler is the handler for "/bar/argWithHeaders"
func NewBarArgWithHeadersHandler ¶
func NewBarArgWithHeadersHandler(deps *module.Dependencies) *BarArgWithHeadersHandler
NewBarArgWithHeadersHandler creates a handler
func (*BarArgWithHeadersHandler) HandleRequest ¶
func (h *BarArgWithHeadersHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/argWithHeaders".
type BarArgWithManyQueryParamsHandler ¶
type BarArgWithManyQueryParamsHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarArgWithManyQueryParamsHandler is the handler for "/bar/argWithManyQueryParams"
func NewBarArgWithManyQueryParamsHandler ¶
func NewBarArgWithManyQueryParamsHandler(deps *module.Dependencies) *BarArgWithManyQueryParamsHandler
NewBarArgWithManyQueryParamsHandler creates a handler
func (*BarArgWithManyQueryParamsHandler) HandleRequest ¶
func (h *BarArgWithManyQueryParamsHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/argWithManyQueryParams".
type BarArgWithNearDupQueryParamsHandler ¶ added in v0.4.3
type BarArgWithNearDupQueryParamsHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarArgWithNearDupQueryParamsHandler is the handler for "/bar/argWithNearDupQueryParams"
func NewBarArgWithNearDupQueryParamsHandler ¶ added in v0.4.3
func NewBarArgWithNearDupQueryParamsHandler(deps *module.Dependencies) *BarArgWithNearDupQueryParamsHandler
NewBarArgWithNearDupQueryParamsHandler creates a handler
func (*BarArgWithNearDupQueryParamsHandler) HandleRequest ¶ added in v0.4.3
func (h *BarArgWithNearDupQueryParamsHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/argWithNearDupQueryParams".
type BarArgWithNestedQueryParamsHandler ¶
type BarArgWithNestedQueryParamsHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarArgWithNestedQueryParamsHandler is the handler for "/bar/argWithNestedQueryParams"
func NewBarArgWithNestedQueryParamsHandler ¶
func NewBarArgWithNestedQueryParamsHandler(deps *module.Dependencies) *BarArgWithNestedQueryParamsHandler
NewBarArgWithNestedQueryParamsHandler creates a handler
func (*BarArgWithNestedQueryParamsHandler) HandleRequest ¶
func (h *BarArgWithNestedQueryParamsHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/argWithNestedQueryParams".
type BarArgWithParamsAndDuplicateFieldsHandler ¶ added in v0.3.0
type BarArgWithParamsAndDuplicateFieldsHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarArgWithParamsAndDuplicateFieldsHandler is the handler for "/bar/argWithParamsAndDuplicateFields/:uuid/segment"
func NewBarArgWithParamsAndDuplicateFieldsHandler ¶ added in v0.3.0
func NewBarArgWithParamsAndDuplicateFieldsHandler(deps *module.Dependencies) *BarArgWithParamsAndDuplicateFieldsHandler
NewBarArgWithParamsAndDuplicateFieldsHandler creates a handler
func (*BarArgWithParamsAndDuplicateFieldsHandler) HandleRequest ¶ added in v0.3.0
func (h *BarArgWithParamsAndDuplicateFieldsHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/argWithParamsAndDuplicateFields/:uuid/segment".
type BarArgWithParamsHandler ¶
type BarArgWithParamsHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarArgWithParamsHandler is the handler for "/bar/argWithParams/:uuid/segment/:user-uuid"
func NewBarArgWithParamsHandler ¶
func NewBarArgWithParamsHandler(deps *module.Dependencies) *BarArgWithParamsHandler
NewBarArgWithParamsHandler creates a handler
func (*BarArgWithParamsHandler) HandleRequest ¶
func (h *BarArgWithParamsHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/argWithParams/:uuid/segment/:user-uuid".
type BarArgWithQueryHeaderHandler ¶
type BarArgWithQueryHeaderHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarArgWithQueryHeaderHandler is the handler for "/bar/argWithQueryHeader"
func NewBarArgWithQueryHeaderHandler ¶
func NewBarArgWithQueryHeaderHandler(deps *module.Dependencies) *BarArgWithQueryHeaderHandler
NewBarArgWithQueryHeaderHandler creates a handler
func (*BarArgWithQueryHeaderHandler) HandleRequest ¶
func (h *BarArgWithQueryHeaderHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/argWithQueryHeader".
type BarArgWithQueryParamsHandler ¶
type BarArgWithQueryParamsHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarArgWithQueryParamsHandler is the handler for "/bar/argWithQueryParams"
func NewBarArgWithQueryParamsHandler ¶
func NewBarArgWithQueryParamsHandler(deps *module.Dependencies) *BarArgWithQueryParamsHandler
NewBarArgWithQueryParamsHandler creates a handler
func (*BarArgWithQueryParamsHandler) HandleRequest ¶
func (h *BarArgWithQueryParamsHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/argWithQueryParams".
type BarDeleteWithBodyHandler ¶ added in v0.6.0
type BarDeleteWithBodyHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarDeleteWithBodyHandler is the handler for "/bar/withBody"
func NewBarDeleteWithBodyHandler ¶ added in v0.6.0
func NewBarDeleteWithBodyHandler(deps *module.Dependencies) *BarDeleteWithBodyHandler
NewBarDeleteWithBodyHandler creates a handler
func (*BarDeleteWithBodyHandler) HandleRequest ¶ added in v0.6.0
func (h *BarDeleteWithBodyHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/withBody".
type BarHelloWorldHandler ¶
type BarHelloWorldHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarHelloWorldHandler is the handler for "/bar/hello"
func NewBarHelloWorldHandler ¶
func NewBarHelloWorldHandler(deps *module.Dependencies) *BarHelloWorldHandler
NewBarHelloWorldHandler creates a handler
func (*BarHelloWorldHandler) HandleRequest ¶
func (h *BarHelloWorldHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/hello".
type BarListAndEnumHandler ¶ added in v0.3.0
type BarListAndEnumHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarListAndEnumHandler is the handler for "/bar/list-and-enum"
func NewBarListAndEnumHandler ¶ added in v0.3.0
func NewBarListAndEnumHandler(deps *module.Dependencies) *BarListAndEnumHandler
NewBarListAndEnumHandler creates a handler
func (*BarListAndEnumHandler) HandleRequest ¶ added in v0.3.0
func (h *BarListAndEnumHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/list-and-enum".
type BarMissingArgHandler ¶
type BarMissingArgHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarMissingArgHandler is the handler for "/bar/missing-arg-path"
func NewBarMissingArgHandler ¶
func NewBarMissingArgHandler(deps *module.Dependencies) *BarMissingArgHandler
NewBarMissingArgHandler creates a handler
func (*BarMissingArgHandler) HandleRequest ¶
func (h *BarMissingArgHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/missing-arg-path".
type BarNoRequestHandler ¶
type BarNoRequestHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarNoRequestHandler is the handler for "/bar/no-request-path"
func NewBarNoRequestHandler ¶
func NewBarNoRequestHandler(deps *module.Dependencies) *BarNoRequestHandler
NewBarNoRequestHandler creates a handler
func (*BarNoRequestHandler) HandleRequest ¶
func (h *BarNoRequestHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/no-request-path".
type BarNormalHandler ¶
type BarNormalHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarNormalHandler is the handler for "/bar/bar-path"
func NewBarNormalHandler ¶
func NewBarNormalHandler(deps *module.Dependencies) *BarNormalHandler
NewBarNormalHandler creates a handler
func (*BarNormalHandler) HandleRequest ¶
func (h *BarNormalHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/bar-path".
type BarTooManyArgsHandler ¶
type BarTooManyArgsHandler struct { Dependencies *module.Dependencies // contains filtered or unexported fields }
BarTooManyArgsHandler is the handler for "/bar/too-many-args-path"
func NewBarTooManyArgsHandler ¶
func NewBarTooManyArgsHandler(deps *module.Dependencies) *BarTooManyArgsHandler
NewBarTooManyArgsHandler creates a handler
func (*BarTooManyArgsHandler) HandleRequest ¶
func (h *BarTooManyArgsHandler) HandleRequest( ctx context.Context, req *zanzibar.ServerHTTPRequest, res *zanzibar.ServerHTTPResponse, ) context.Context
HandleRequest handles "/bar/too-many-args-path".
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 { BarArgNotStructHandler *BarArgNotStructHandler BarArgWithHeadersHandler *BarArgWithHeadersHandler BarArgWithManyQueryParamsHandler *BarArgWithManyQueryParamsHandler BarArgWithNearDupQueryParamsHandler *BarArgWithNearDupQueryParamsHandler BarArgWithNestedQueryParamsHandler *BarArgWithNestedQueryParamsHandler BarArgWithParamsHandler *BarArgWithParamsHandler BarArgWithParamsAndDuplicateFieldsHandler *BarArgWithParamsAndDuplicateFieldsHandler BarArgWithQueryHeaderHandler *BarArgWithQueryHeaderHandler BarArgWithQueryParamsHandler *BarArgWithQueryParamsHandler BarDeleteWithBodyHandler *BarDeleteWithBodyHandler BarHelloWorldHandler *BarHelloWorldHandler BarListAndEnumHandler *BarListAndEnumHandler BarMissingArgHandler *BarMissingArgHandler BarNoRequestHandler *BarNoRequestHandler BarNormalHandler *BarNormalHandler BarTooManyArgsHandler *BarTooManyArgsHandler }
EndpointHandlers is a collection of individual endpoint handlers
Source Files ¶
- bar_bar_method_argnotstruct.go
- bar_bar_method_argwithheaders.go
- bar_bar_method_argwithmanyqueryparams.go
- bar_bar_method_argwithneardupqueryparams.go
- bar_bar_method_argwithnestedqueryparams.go
- bar_bar_method_argwithparams.go
- bar_bar_method_argwithparamsandduplicatefields.go
- bar_bar_method_argwithqueryheader.go
- bar_bar_method_argwithqueryparams.go
- bar_bar_method_deletewithbody.go
- bar_bar_method_helloworld.go
- bar_bar_method_listandenum.go
- bar_bar_method_missingarg.go
- bar_bar_method_norequest.go
- bar_bar_method_normal.go
- bar_bar_method_toomanyargs.go
- bar_structs.go
- endpoint.go