barendpoint

package
v0.0.0-...-d9eb102 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Index

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

HandleRequest handles "/bar/arg-not-struct-path".

func (*BarArgNotStructHandler) Register

func (h *BarArgNotStructHandler) Register(g *zanzibar.Gateway) error

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

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

HandleRequest handles "/bar/argWithHeaders".

func (*BarArgWithHeadersHandler) Register

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

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

HandleRequest handles "/bar/argWithManyQueryParams".

func (*BarArgWithManyQueryParamsHandler) Register

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

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

HandleRequest handles "/bar/argWithNestedQueryParams".

func (*BarArgWithNestedQueryParamsHandler) Register

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

type BarArgWithParamsAndDuplicateFieldsHandler

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

BarArgWithParamsAndDuplicateFieldsHandler is the handler for "/bar/argWithParamsAndDuplicateFields/:uuid/segment"

func NewBarArgWithParamsAndDuplicateFieldsHandler

func NewBarArgWithParamsAndDuplicateFieldsHandler(deps *module.Dependencies) *BarArgWithParamsAndDuplicateFieldsHandler

NewBarArgWithParamsAndDuplicateFieldsHandler creates a handler

func (*BarArgWithParamsAndDuplicateFieldsHandler) HandleRequest

HandleRequest handles "/bar/argWithParamsAndDuplicateFields/:uuid/segment".

func (*BarArgWithParamsAndDuplicateFieldsHandler) Register

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

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

HandleRequest handles "/bar/argWithParams/:uuid/segment/:user-uuid".

func (*BarArgWithParamsHandler) Register

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

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

HandleRequest handles "/bar/argWithQueryHeader".

func (*BarArgWithQueryHeaderHandler) Register

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

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

HandleRequest handles "/bar/argWithQueryParams".

func (*BarArgWithQueryParamsHandler) Register

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

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

HandleRequest handles "/bar/hello".

func (*BarHelloWorldHandler) Register

func (h *BarHelloWorldHandler) Register(g *zanzibar.Gateway) error

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

type BarListAndEnumHandler

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

BarListAndEnumHandler is the handler for "/bar/list-and-enum"

func NewBarListAndEnumHandler

func NewBarListAndEnumHandler(deps *module.Dependencies) *BarListAndEnumHandler

NewBarListAndEnumHandler creates a handler

func (*BarListAndEnumHandler) HandleRequest

HandleRequest handles "/bar/list-and-enum".

func (*BarListAndEnumHandler) Register

func (h *BarListAndEnumHandler) Register(g *zanzibar.Gateway) error

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

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

HandleRequest handles "/bar/missing-arg-path".

func (*BarMissingArgHandler) Register

func (h *BarMissingArgHandler) Register(g *zanzibar.Gateway) error

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

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

HandleRequest handles "/bar/no-request-path".

func (*BarNoRequestHandler) Register

func (h *BarNoRequestHandler) Register(g *zanzibar.Gateway) error

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

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

HandleRequest handles "/bar/bar-path".

func (*BarNormalHandler) Register

func (h *BarNormalHandler) Register(g *zanzibar.Gateway) error

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

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

HandleRequest handles "/bar/too-many-args-path".

func (*BarTooManyArgsHandler) Register

func (h *BarTooManyArgsHandler) Register(g *zanzibar.Gateway) error

Register adds the http handler to the gateway's http 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 {
	BarArgNotStructHandler                    *BarArgNotStructHandler
	BarArgWithHeadersHandler                  *BarArgWithHeadersHandler
	BarArgWithQueryParamsHandler              *BarArgWithQueryParamsHandler
	BarArgWithNestedQueryParamsHandler        *BarArgWithNestedQueryParamsHandler
	BarArgWithQueryHeaderHandler              *BarArgWithQueryHeaderHandler
	BarArgWithParamsHandler                   *BarArgWithParamsHandler
	BarArgWithManyQueryParamsHandler          *BarArgWithManyQueryParamsHandler
	BarMissingArgHandler                      *BarMissingArgHandler
	BarNoRequestHandler                       *BarNoRequestHandler
	BarNormalHandler                          *BarNormalHandler
	BarTooManyArgsHandler                     *BarTooManyArgsHandler
	BarHelloWorldHandler                      *BarHelloWorldHandler
	BarListAndEnumHandler                     *BarListAndEnumHandler
	BarArgWithParamsAndDuplicateFieldsHandler *BarArgWithParamsAndDuplicateFieldsHandler
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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