workspace

package
v0.0.0-...-cb42e1a Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapListWorkspaceHttp

func MapListWorkspaceHttp(r *http.Request) (*workspace.ListWorkspaceQuery, error)

func MapPatchWorkspaceHttp

func MapPatchWorkspaceHttp(r *http.Request) (*workspace.PatchWorkspaceCommand, error)

func MapReadWorkspaceHttp

func MapReadWorkspaceHttp(r *http.Request) (*workspace.ReadWorkspaceQuery, error)

Types

type ListWorkspaceHandler

type ListWorkspaceHandler struct {
	MapperFunc   ListWorkspaceMapperFunc
	QueryHandler ListWorkspaceQueryHandlerFunc

	MarshalerProvider marshal.MarshalerProvider
}

ListWorkspaceHandler the http.Request handler for List Workspaces endpoint

func NewDefaultListWorkspaceHandler

func NewDefaultListWorkspaceHandler(
	handler ListWorkspaceQueryHandlerFunc,
) *ListWorkspaceHandler

func NewListWorkspaceHandler

func NewListWorkspaceHandler(
	mapperFunc ListWorkspaceMapperFunc,
	queryHandler ListWorkspaceQueryHandlerFunc,
	marshalerProvider marshal.MarshalerProvider,
) *ListWorkspaceHandler

NewListWorkspaceHandler creates a ListWorkspaceHandler

func (*ListWorkspaceHandler) ServeHTTP

func (h *ListWorkspaceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ListWorkspaceMapperFunc

type ListWorkspaceMapperFunc func(*http.Request) (*workspace.ListWorkspaceQuery, error)

handler dependencies

type PatchWorkspaceHandler

type PatchWorkspaceHandler struct {
	MapperFunc     PatchWorkspaceMapperFunc
	CommandHandler PatchWorkspaceCommandHandlerFunc

	MarshalerProvider marshal.MarshalerProvider
}

PatchWorkspaceHandler the http.Request handler for Patch Workspaces endpoint

func NewDefaultPatchWorkspaceHandler

func NewDefaultPatchWorkspaceHandler(
	handler PatchWorkspaceCommandHandlerFunc,
) *PatchWorkspaceHandler

NewPatchWorkspaceHandler creates a PatchWorkspaceHandler

func NewPatchWorkspaceHandler

func NewPatchWorkspaceHandler(
	mapperFunc PatchWorkspaceMapperFunc,
	commandHandler PatchWorkspaceCommandHandlerFunc,
	marshalerProvider marshal.MarshalerProvider,
) *PatchWorkspaceHandler

NewPatchWorkspaceHandler creates a PatchWorkspaceHandler

func (*PatchWorkspaceHandler) ServeHTTP

type PatchWorkspaceMapperFunc

type PatchWorkspaceMapperFunc func(*http.Request) (*workspace.PatchWorkspaceCommand, error)

handler dependencies

type PostWorkspaceHandler

type PostWorkspaceHandler struct {
	MapperFunc          PostWorkspaceMapperFunc
	CreateHandler       CreateWorkspaceCommandHandlerFunc
	MarshalerProvider   marshal.MarshalerProvider
	UnmarshalerProvider marshal.UnmarshalerProvider
}

func NewPostWorkspaceHandler

func NewPostWorkspaceHandler(
	mapperFunc PostWorkspaceMapperFunc,
	createHandler CreateWorkspaceCommandHandlerFunc,
	marshalProvider marshal.MarshalerProvider,
	unmarshalProvider marshal.UnmarshalerProvider,
) *PostWorkspaceHandler

func (*PostWorkspaceHandler) ServeHTTP

func (p *PostWorkspaceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP implements http.Handler.

type ReadWorkspaceHandler

type ReadWorkspaceHandler struct {
	MapperFunc   ReadWorkspaceMapperFunc
	QueryHandler ReadWorkspaceQueryHandlerFunc

	MarshalerProvider marshal.MarshalerProvider
}

ReadWorkspaceHandler the http.Request handler for Read Workspaces endpoint

func NewDefaultReadWorkspaceHandler

func NewDefaultReadWorkspaceHandler(
	handler ReadWorkspaceQueryHandlerFunc,
) *ReadWorkspaceHandler

NewReadWorkspaceHandler creates a ReadWorkspaceHandler

func NewReadWorkspaceHandler

func NewReadWorkspaceHandler(
	mapperFunc ReadWorkspaceMapperFunc,
	queryHandler ReadWorkspaceQueryHandlerFunc,
	marshalerProvider marshal.MarshalerProvider,
) *ReadWorkspaceHandler

NewReadWorkspaceHandler creates a ReadWorkspaceHandler

func (*ReadWorkspaceHandler) ServeHTTP

func (h *ReadWorkspaceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ReadWorkspaceMapperFunc

type ReadWorkspaceMapperFunc func(r *http.Request) (*workspace.ReadWorkspaceQuery, error)

handler dependencies

type UpdateWorkspaceHandler

type UpdateWorkspaceHandler struct {
	MapperFunc     UpdateWorkspaceMapperFunc
	CommandHandler UpdateWorkspaceCommandHandlerFunc

	MarshalerProvider   marshal.MarshalerProvider
	UnmarshalerProvider marshal.UnmarshalerProvider
}

UpdateWorkspaceHandler the http.Request handler for Update Workspaces endpoint

func NewDefaultUpdateWorkspaceHandler

func NewDefaultUpdateWorkspaceHandler(
	handler UpdateWorkspaceCommandHandlerFunc,
) *UpdateWorkspaceHandler

NewUpdateWorkspaceHandler creates a UpdateWorkspaceHandler

func NewUpdateWorkspaceHandler

func NewUpdateWorkspaceHandler(
	mapperFunc UpdateWorkspaceMapperFunc,
	queryHandler UpdateWorkspaceCommandHandlerFunc,
	marshalerProvider marshal.MarshalerProvider,
	unmarshalerProvider marshal.UnmarshalerProvider,
) *UpdateWorkspaceHandler

NewUpdateWorkspaceHandler creates a UpdateWorkspaceHandler

func (*UpdateWorkspaceHandler) ServeHTTP

type UpdateWorkspaceMapperFunc

type UpdateWorkspaceMapperFunc func(*http.Request, marshal.UnmarshalerProvider) (*workspace.UpdateWorkspaceCommand, error)

handler dependencies

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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