Versions in this module Expand all Collapse all v0 v0.0.2 Apr 4, 2024 Changes in this version type ActionFull + UISchema map[string]interface{} v0.0.1 Apr 4, 2024 Changes in this version + func GetSwagger() (swagger *openapi3.T, err error) + func Handler(si ServerInterface) http.Handler + func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler + func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler + func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + func Run(ctx context.Context, app launchr.App, opts *RunOptions) error + type ActionFull struct + Description string + ID string + JSONSchema jsonschema.Schema + Title string + type ActionId = string + type ActionRunInfo struct + ID string + Status string + type ActionRunInfoId = string + type ActionRunParams struct + Arguments action.TypeArgs + Options action.TypeOpts + type ActionRunStreamData struct + Content string + Count int + Offset int + Type ActionRunStreamDataType + type ActionRunStreamDataType string + const StdErr + const StdIn + const StdOut + type ActionShort struct + Description string + ID string + Title string + type ChiServerOptions struct + BaseRouter chi.Router + BaseURL string + ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) + Middlewares []MiddlewareFunc + type DefaultError = Error + type Error struct + Code int32 + Message string + type GetRunningActionStreamsParams struct + Limit *Limit + Offset *Offset + type InvalidParamFormatError struct + Err error + ParamName string + func (e *InvalidParamFormatError) Error() string + func (e *InvalidParamFormatError) Unwrap() error + type JSONSchema = map[string]interface + type Limit = int + type MiddlewareFunc func(http.Handler) http.Handler + type Offset = int + type RequiredHeaderError struct + Err error + ParamName string + func (e *RequiredHeaderError) Error() string + func (e *RequiredHeaderError) Unwrap() error + type RequiredParamError struct + ParamName string + func (e *RequiredParamError) Error() string + type RunActionJSONRequestBody = ActionRunParams + type RunOptions struct + APIPrefix string + Addr string + ClientFS fs.FS + ProxyClient string + SwaggerJSON bool + SwaggerUIFS fs.FS + type ServerInterface interface + GetActionByID func(w http.ResponseWriter, r *http.Request, id ActionId) + GetActionJSONSchema func(w http.ResponseWriter, r *http.Request, id ActionId) + GetActions func(w http.ResponseWriter, r *http.Request) + GetOneRunningActionByID func(w http.ResponseWriter, r *http.Request, id ActionId, runId ActionRunInfoId) + GetRunningActionStreams func(w http.ResponseWriter, r *http.Request, id ActionId, runId ActionRunInfoId, ...) + GetRunningActionsByID func(w http.ResponseWriter, r *http.Request, id ActionId) + RunAction func(w http.ResponseWriter, r *http.Request, id ActionId) + type ServerInterfaceWrapper struct + ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) + Handler ServerInterface + HandlerMiddlewares []MiddlewareFunc + func (siw *ServerInterfaceWrapper) GetActionByID(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetActionJSONSchema(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetActions(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetOneRunningActionByID(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetRunningActionStreams(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) GetRunningActionsByID(w http.ResponseWriter, r *http.Request) + func (siw *ServerInterfaceWrapper) RunAction(w http.ResponseWriter, r *http.Request) + type TooManyValuesForParamError struct + Count int + ParamName string + func (e *TooManyValuesForParamError) Error() string + type UnescapedCookieParamError struct + Err error + ParamName string + func (e *UnescapedCookieParamError) Error() string + func (e *UnescapedCookieParamError) Unwrap() error + type Unimplemented struct + func (_ Unimplemented) GetActionByID(w http.ResponseWriter, r *http.Request, id ActionId) + func (_ Unimplemented) GetActionJSONSchema(w http.ResponseWriter, r *http.Request, id ActionId) + func (_ Unimplemented) GetActions(w http.ResponseWriter, r *http.Request) + func (_ Unimplemented) GetOneRunningActionByID(w http.ResponseWriter, r *http.Request, id ActionId, runId ActionRunInfoId) + func (_ Unimplemented) GetRunningActionStreams(w http.ResponseWriter, r *http.Request, id ActionId, runId ActionRunInfoId, ...) + func (_ Unimplemented) GetRunningActionsByID(w http.ResponseWriter, r *http.Request, id ActionId) + func (_ Unimplemented) RunAction(w http.ResponseWriter, r *http.Request, id ActionId) + type UnmarshalingParamError struct + Err error + ParamName string + func (e *UnmarshalingParamError) Error() string + func (e *UnmarshalingParamError) Unwrap() error