withexceptionsendpoint

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 {
	WithExceptionsFunc1Handler *WithExceptionsFunc1Handler
}

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 WithExceptionsFunc1Handler

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

WithExceptionsFunc1Handler is the handler for "/withexceptions/func1"

func NewWithExceptionsFunc1Handler

func NewWithExceptionsFunc1Handler(deps *module.Dependencies) *WithExceptionsFunc1Handler

NewWithExceptionsFunc1Handler creates a handler

func (*WithExceptionsFunc1Handler) HandleRequest

HandleRequest handles "/withexceptions/func1".

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