handler

package
v0.0.0-...-986c4a6 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteError

func WriteError(response http.Response, err error)

Write an error to response.

Types

type Create

type Create struct {
	Log          log.Logger
	Service      *services.CreateService
	ResourceType *spec.ResourceType
}

func (*Create) Handle

func (h *Create) Handle(request http.Request, response http.Response)

type Delete

type Delete struct {
	Log                 log.Logger
	Service             *services.DeleteService
	ResourceIDPathParam string
}

func (*Delete) Handle

func (h *Delete) Handle(request http.Request, response http.Response)

type Func

type Func func(request http.Request, response http.Response)

Handler function implemented by endpoint handlers in this package.

type Get

type Get struct {
	Log                 log.Logger
	Service             *services.GetService
	ResourceIDPathParam string
}

func (*Get) Handle

func (h *Get) Handle(request http.Request, response http.Response)

type Patch

type Patch struct {
	Log                 log.Logger
	Service             *services.PatchService
	ResourceIDPathParam string
}

func (*Patch) Handle

func (h *Patch) Handle(request http.Request, response http.Response)

type Query

type Query struct {
	Log     log.Logger
	Service *services.QueryService
}

func (*Query) Handle

func (h *Query) Handle(request http.Request, response http.Response)

type Replace

type Replace struct {
	Log                 log.Logger
	Service             *services.ReplaceService
	ResourceIDPathParam string
	ResourceType        *spec.ResourceType
}

func (*Replace) Handle

func (h *Replace) Handle(request http.Request, response http.Response)

type ServiceProviderConfig

type ServiceProviderConfig struct {
	Log log.Logger
	SPC *spec.ServiceProviderConfig
	// contains filtered or unexported fields
}

func (*ServiceProviderConfig) Handle

func (h *ServiceProviderConfig) Handle(_ http.Request, response http.Response)

Jump to

Keyboard shortcuts

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