Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataResponse ¶
func NewSuccessDataResponse ¶
func NewSuccessDataResponse(data any) DataResponse
type DataResponseNode ¶
type DataResponseNode struct{}
func (DataResponseNode) Run ¶
func (DataResponseNode) Run(ctx nodes.WorkflowContext, input any) (any, error)
type ErrorResponse ¶
func NewErrorResponse ¶
func NewErrorResponse(err string) ErrorResponse
type Handler ¶
func NewHandler ¶
func (Handler) Serve ¶
func (h Handler) Serve(w http.ResponseWriter, req *http.Request, params httprouter.Params)
type JSONBodyParserNode ¶
type JSONBodyParserNode[Model any] struct{}
func (JSONBodyParserNode[Model]) Run ¶
func (JSONBodyParserNode[Model]) Run(ctx nodes.WorkflowContext, input any) (any, error)
Click to show internal directories.
Click to hide internal directories.