Documentation ¶
Index ¶
- func MapListWorkspaceHttp(r *http.Request) (*workspace.ListWorkspaceQuery, error)
- func MapPatchWorkspaceHttp(r *http.Request) (*workspace.PatchWorkspaceCommand, error)
- func MapPostWorkspaceHttp(r *http.Request, unmarshaler marshal.UnmarshalerProvider) (*workspace.CreateWorkspaceCommand, error)
- func MapPutWorkspaceHttp(r *http.Request, provider marshal.UnmarshalerProvider) (*workspace.UpdateWorkspaceCommand, error)
- func MapReadWorkspaceHttp(r *http.Request) (*workspace.ReadWorkspaceQuery, error)
- type CreateWorkspaceCommandHandlerFunc
- type ListWorkspaceHandler
- type ListWorkspaceMapperFunc
- type ListWorkspaceQueryHandlerFunc
- type PatchWorkspaceCommandHandlerFunc
- type PatchWorkspaceHandler
- type PatchWorkspaceMapperFunc
- type PostWorkspaceHandler
- type PostWorkspaceMapperFunc
- type ReadWorkspaceHandler
- type ReadWorkspaceMapperFunc
- type ReadWorkspaceQueryHandlerFunc
- type UpdateWorkspaceCommandHandlerFunc
- type UpdateWorkspaceHandler
- type UpdateWorkspaceMapperFunc
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 MapPostWorkspaceHttp ¶
func MapPostWorkspaceHttp(r *http.Request, unmarshaler marshal.UnmarshalerProvider) (*workspace.CreateWorkspaceCommand, error)
func MapPutWorkspaceHttp ¶
func MapPutWorkspaceHttp(r *http.Request, provider marshal.UnmarshalerProvider) (*workspace.UpdateWorkspaceCommand, error)
func MapReadWorkspaceHttp ¶
func MapReadWorkspaceHttp(r *http.Request) (*workspace.ReadWorkspaceQuery, error)
Types ¶
type CreateWorkspaceCommandHandlerFunc ¶
type CreateWorkspaceCommandHandlerFunc func(context.Context, workspace.CreateWorkspaceCommand) (*workspace.CreateWorkspaceResponse, error)
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 ListWorkspaceQueryHandlerFunc ¶
type ListWorkspaceQueryHandlerFunc func(context.Context, workspace.ListWorkspaceQuery) (*workspace.ListWorkspaceResponse, error)
type PatchWorkspaceCommandHandlerFunc ¶
type PatchWorkspaceCommandHandlerFunc func(context.Context, workspace.PatchWorkspaceCommand) (*workspace.PatchWorkspaceResponse, error)
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 ¶
func (h *PatchWorkspaceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
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 PostWorkspaceMapperFunc ¶
type PostWorkspaceMapperFunc func(*http.Request, marshal.UnmarshalerProvider) (*workspace.CreateWorkspaceCommand, error)
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 ReadWorkspaceQueryHandlerFunc ¶
type ReadWorkspaceQueryHandlerFunc func(context.Context, workspace.ReadWorkspaceQuery) (*workspace.ReadWorkspaceResponse, error)
type UpdateWorkspaceCommandHandlerFunc ¶
type UpdateWorkspaceCommandHandlerFunc func(context.Context, workspace.UpdateWorkspaceCommand) (*workspace.UpdateWorkspaceResponse, error)
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 ¶
func (h *UpdateWorkspaceHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UpdateWorkspaceMapperFunc ¶
type UpdateWorkspaceMapperFunc func(*http.Request, marshal.UnmarshalerProvider) (*workspace.UpdateWorkspaceCommand, error)
handler dependencies