Documentation
¶
Index ¶
- Constants
- Variables
- type Controller
- func (controller *Controller) BuildComponentTree(app *model.App, parentNodeID int, componentNodeTree *model.ComponentNode) error
- func (controller *Controller) ConfigApp(c *gin.Context)
- func (controller *Controller) CreateAction(c *gin.Context)
- func (controller *Controller) CreateActionByBatch(c *gin.Context)
- func (controller *Controller) CreateApp(c *gin.Context)
- func (controller *Controller) CreateFlowAction(c *gin.Context)
- func (controller *Controller) CreateGoogleOAuthToken(c *gin.Context)
- func (controller *Controller) CreateResource(c *gin.Context)
- func (controller *Controller) DeleteAction(c *gin.Context)
- func (controller *Controller) DeleteApp(c *gin.Context)
- func (controller *Controller) DeleteFlowAction(c *gin.Context)
- func (controller *Controller) DeleteResource(c *gin.Context)
- func (controller *Controller) DuplicateActionByVersion(c *gin.Context, fromTeamID int, toTeamID int, fromAppID int, toAppID int, ...) error
- func (controller *Controller) DuplicateApp(c *gin.Context)
- func (controller *Controller) DuplicateFlowActionsInternal(c *gin.Context)
- func (controller *Controller) DuplicateKVStateByVersion(c *gin.Context, fromTeamID int, toTeamID int, fromAppID int, toAppID int, ...) error
- func (controller *Controller) DuplicateSetStateByVersion(c *gin.Context, fromTeamID int, toTeamID int, fromAppID int, toAppID int, ...) error
- func (controller *Controller) DuplicateTreeStateByVersion(c *gin.Context, fromTeamID int, toTeamID int, fromAppID int, toAppID int, ...) error
- func (controller *Controller) FeedbackBadRequest(c *gin.Context, errorFlag string, errorMessage string)
- func (controller *Controller) FeedbackCreated(c *gin.Context, resp response.Response)
- func (controller *Controller) FeedbackInternalServerError(c *gin.Context, errorFlag string, errorMessage string)
- func (controller *Controller) FeedbackOK(c *gin.Context, resp response.Response)
- func (controller *Controller) FeedbackRedirect(c *gin.Context, uri string)
- func (controller *Controller) ForkMarketplaceApp(c *gin.Context)
- func (controller *Controller) GenerateSQL(c *gin.Context)
- func (controller *Controller) GetAction(c *gin.Context)
- func (controller *Controller) GetAllAppByPage(c *gin.Context)
- func (controller *Controller) GetAllAppListByIDsInternal(c *gin.Context)
- func (controller *Controller) GetAllApps(c *gin.Context)
- func (controller *Controller) GetAllResources(c *gin.Context)
- func (controller *Controller) GetAppRoomBinaryConnectionAddress(c *gin.Context)
- func (controller *Controller) GetAppRoomConnectionAddress(c *gin.Context)
- func (controller *Controller) GetDashboardRoomConnectionAddress(c *gin.Context)
- func (controller *Controller) GetFirstStringParamValueFromURI(c *gin.Context, paramName string) (string, error)
- func (controller *Controller) GetFlowAction(c *gin.Context)
- func (controller *Controller) GetFullApp(c *gin.Context)
- func (controller *Controller) GetFullPublicApp(c *gin.Context)
- func (controller *Controller) GetGoogleSheetsOAuth2Token(c *gin.Context)
- func (controller *Controller) GetIntParamFromRequest(c *gin.Context, paramName string) (int, error)
- func (controller *Controller) GetMagicIntParamFromRequest(c *gin.Context, paramName string) (int, error)
- func (controller *Controller) GetMetaInfo(c *gin.Context)
- func (controller *Controller) GetOptionalStringFromFormData(c *gin.Context, paramName string) string
- func (controller *Controller) GetReleaseVersionAppInternal(c *gin.Context)
- func (controller *Controller) GetResource(c *gin.Context)
- func (controller *Controller) GetResourceMetaInfo(c *gin.Context, resource *model.Resource) (*common.MetaInfoResult, error)
- func (controller *Controller) GetSnapshot(c *gin.Context)
- func (controller *Controller) GetSnapshotList(c *gin.Context)
- func (controller *Controller) GetStatus(c *gin.Context)
- func (controller *Controller) GetStringFromFormData(c *gin.Context, paramName string) (string, error)
- func (controller *Controller) GetStringParamFromHeader(c *gin.Context, paramName string) (string, error)
- func (controller *Controller) GetStringParamFromRequest(c *gin.Context, paramName string) (string, error)
- func (controller *Controller) GetStringParamValuesFromURI(c *gin.Context, paramName string) ([]string, error)
- func (controller *Controller) GetTargetVersionFullApp(c *gin.Context, teamID int, appID int, version int, getPublicApp bool) (*model.FullAppForExport, error)
- func (controller *Controller) GetTargetVersionFullAppByAppID(c *gin.Context, appID int, version int) (*model.FullAppForExport, error)
- func (controller *Controller) GetTeamBuilderDesc(c *gin.Context)
- func (controller *Controller) GetUserAuthTokenFromHeader(c *gin.Context) (string, error)
- func (controller *Controller) GetUserIDFromAuth(c *gin.Context) (int, error)
- func (controller *Controller) GetWorkflowAllFlowActionsInternal(c *gin.Context)
- func (controller *Controller) GetWorkflowFlowActionByIDInternal(c *gin.Context)
- func (controller *Controller) GetWorkflowFlowActionsByTypeInternal(c *gin.Context)
- func (controller *Controller) GoogleOAuth2Exchange(c *gin.Context)
- func (controller *Controller) InitAppSnapshot(c *gin.Context, teamID int, appID int) (*model.AppSnapshot, error)
- func (controller *Controller) IsPublicApp(c *gin.Context)
- func (controller *Controller) PublishAppToMarketplaceInternal(c *gin.Context)
- func (controller *Controller) RecoverSnapshot(c *gin.Context)
- func (controller *Controller) RefreshGoogleSheetsOAuth(c *gin.Context)
- func (controller *Controller) ReleaseApp(c *gin.Context)
- func (controller *Controller) RunAction(c *gin.Context)
- func (controller *Controller) RunFlowAction(c *gin.Context)
- func (controller *Controller) RunFlowActionInternal(c *gin.Context)
- func (controller *Controller) RunPublicAction(c *gin.Context)
- func (controller *Controller) SaveAppSnapshot(c *gin.Context, teamID int, appID int, userID int, mainlineVersion int, ...) (*model.AppSnapshot, error)
- func (controller *Controller) SaveAppSnapshotByVersion(c *gin.Context, teamID int, appID int, userID int, fromVersion int, ...) (*model.AppSnapshot, error)
- func (controller *Controller) SearchAppByKeywordsByPage(c *gin.Context)
- func (controller *Controller) SearchAppByKeywordsByPageUsingURIParam(c *gin.Context)
- func (controller *Controller) SetActionTutorialLink(c *gin.Context)
- func (controller *Controller) TakeSnapshot(c *gin.Context)
- func (controller *Controller) TestConnection(c *gin.Context)
- func (controller *Controller) TestFirstStringParamValueFromURI(c *gin.Context, paramName string) (string, error)
- func (controller *Controller) TestMagicIntParamFromRequest(c *gin.Context, paramName string) (int, error)
- func (controller *Controller) TestResourceConnection(c *gin.Context, resource *model.Resource) error
- func (controller *Controller) TestStringParamFromRequest(c *gin.Context, paramName string) (string, error)
- func (controller *Controller) UpdateAction(c *gin.Context)
- func (controller *Controller) UpdateActionByBatch(c *gin.Context)
- func (controller *Controller) UpdateFlowAction(c *gin.Context)
- func (controller *Controller) UpdateFlowActionByBatch(c *gin.Context)
- func (controller *Controller) UpdateResource(c *gin.Context)
- func (controller *Controller) ValidateActionTemplate(c *gin.Context, action *model.Action) error
- func (controller *Controller) ValidateFlowActionTemplate(c *gin.Context, flowAction *model.FlowAction) error
- func (controller *Controller) ValidateRequestTokenFromHeader(c *gin.Context, input ...string) (bool, error)
- func (controller *Controller) ValidateRequestTokenFromHeaderByStringMap(c *gin.Context, input []string) (bool, error)
- func (controller *Controller) ValidateResourceConternt(c *gin.Context, resource *model.Resource) error
- type RoomRequest
Constants ¶
View Source
const ( PARAM_AUTHORIZATION = "Authorization" PARAM_REQUEST_TOKEN = "Request-Token" PARAM_TEAM_ID = "teamID" PARAM_USER_ID = "userID" PARAM_TARGET_USER_ID = "targetUserID" PARAM_TEAM_IDENTIFIER = "teamIdentifier" PARAM_USER_ROLE = "userRole" PARAM_INVITE_LINK_HASH = "inviteLinkHash" PARAM_UNIT_TYPE = "unitType" PARAM_UNIT_ID = "unitID" PARAM_ATTRIBUTE_ID = "attributeID" PARAM_FROM_ID = "fromID" PARAM_TO_ID = "toID" PARAM_ACTION_ID = "actionID" PARAM_APP_ID = "appID" PARAM_VERSION = "version" PARAM_RESOURCE_ID = "resourceID" PARAM_PAGE_LIMIT = "pageLimit" PARAM_PAGE = "page" PARAM_SNAPSHOT_ID = "snapshotID" PARAM_STATE = "state" PARAM_CODE = "code" PARAM_ERROR = "error" PARAM_ACCESS_TOKEN = "accessToken" PARAM_SORT_BY = "sortBy" PARAM_LIMIT = "limit" PARAM_KEYWORDS = "keywords" PARAM_TO_TEAM_ID = "toTeamID" PARAM_FORK_TO = "forkTo" PARAM_WORKFLOW_ID = "workflowID" PARAM_FLOW_ACTION_ID = "flowActionID" PARAM_EXPIRE_AT = "expireAt" PARAM_ACTION_TYPE = "actionType" PARAM_FROM_TEAM_ID = "fromTeamID" PARAM_FROM_WORKFLOW_ID = "fromWorkflowID" PARAM_TO_WORKFLOW_ID = "toWorkflowID" PARAM_FROM_VERSION = "fromVersion" PARAM_TO_VERSION = "toVersion" PARAM_IS_FORK_WORKFLOW = "isForkWorkflow" )
View Source
const ( // validate failed ERROR_FLAG_VALIDATE_ACCOUNT_FAILED = "ERROR_FLAG_VALIDATE_ACCOUNT_FAILED" ERROR_FLAG_VALIDATE_REQUEST_BODY_FAILED = "ERROR_FLAG_VALIDATE_REQUEST_BODY_FAILED" ERROR_FLAG_VALIDATE_REQUEST_TOKEN_FAILED = "ERROR_FLAG_VALIDATE_REQUEST_TOKEN_FAILED" ERROR_FLAG_VALIDATE_REQUEST_PARAM_FAILED = "ERROR_FLAG_VALIDATE_REQUEST_PARAM_FAILED" ERROR_FLAG_VALIDATE_VERIFICATION_CODE_FAILED = "ERROR_FLAG_VALIDATE_VERIFICATION_CODE_FAILED" ERROR_FLAG_VALIDATE_RESOURCE_FAILED = "ERROR_FLAG_VALIDATE_RESOURCE_FAILED" ERROR_FLAG_PARSE_REQUEST_BODY_FAILED = "ERROR_FLAG_PARSE_REQUEST_BODY_FAILED" ERROR_FLAG_PARSE_REQUEST_URI_FAILED = "ERROR_FLAG_PARSE_REQUEST_URI_FAILED" ERROR_FLAG_PARSE_INVITE_LINK_HASH_FAILED = "ERROR_FLAG_PARSE_INVITE_LINK_HASH_FAILED" ERROR_FLAG_CAN_NOT_TRANSFER_OWNER_TO_PENDING_USER = "ERROR_FLAG_CAN_NOT_TRANSFER_OWNER_TO_PENDING_USER" ERROR_FLAG_CAN_NOT_REMOVE_OWNER_FROM_TEAM = "ERROR_FLAG_CAN_NOT_REMOVE_OWNER_FROM_TEAM" ERROR_FLAG_SIGN_UP_EMAIL_MISMATCH = "ERROR_FLAG_SIGN_UP_EMAIL_MISMATCH" ERROR_FLAG_OWNER_ROLE_MUST_BE_TRANSFERED = "ERROR_FLAG_OWNER_ROLE_MUST_BE_TRANSFERED" ERROR_FLAG_PASSWORD_INVALIED = "ERROR_FLAG_PASSWORD_INVALIED" ERROR_FLAG_TEAM_MUST_TRANSFERED_BEFORE_USER_SUSPEND = "ERROR_FLAG_TEAM_MUST_TRANSFERED_BEFORE_USER_SUSPEND" // can note create ERROR_FLAG_CAN_NOT_CREATE_USER = "ERROR_FLAG_CAN_NOT_CREATE_USER" ERROR_FLAG_CAN_NOT_CREATE_TEAM = "ERROR_FLAG_CAN_NOT_CREATE_TEAM" ERROR_FLAG_CAN_NOT_CREATE_TEAM_MEMBER = "ERROR_FLAG_CAN_NOT_CREATE_TEAM_MEMBER" ERROR_FLAG_CAN_NOT_CREATE_INVITE = "ERROR_FLAG_CAN_NOT_CREATE_INVITE" ERROR_FLAG_CAN_NOT_CREATE_INVITATION_CODE = "ERROR_FLAG_CAN_NOT_CREATE_INVITATION_CODE" ERROR_FLAG_CAN_NOT_CREATE_DOMAIN = "ERROR_FLAG_CAN_NOT_CREATE_DOMAIN" ERROR_FLAG_CAN_NOT_CREATE_ACTION = "ERROR_FLAG_CAN_NOT_CREATE_ACTION" ERROR_FLAG_CAN_NOT_CREATE_RESOURCE = "ERROR_FLAG_CAN_NOT_CREATE_RESOURCE" ERROR_FLAG_CAN_NOT_CREATE_APP = "ERROR_FLAG_CAN_NOT_CREATE_APP" ERROR_FLAG_CAN_NOT_CREATE_STATE = "ERROR_FLAG_CAN_NOT_CREATE_STATE" ERROR_FLAG_CAN_NOT_CREATE_SNAPSHOT = "ERROR_FLAG_CAN_NOT_CREATE_SNAPSHOT" ERROR_FLAG_CAN_NOT_CREATE_COMPONENT_TREE = "ERROR_FLAG_CAN_NOT_CREATE_COMPONENT_TREE" // can not get resource ERROR_FLAG_CAN_NOT_GET_USER = "ERROR_FLAG_CAN_NOT_GET_USER" ERROR_FLAG_CAN_NOT_GET_TEAM = "ERROR_FLAG_CAN_NOT_GET_TEAM" ERROR_FLAG_CAN_NOT_GET_TEAM_MEMBER = "ERROR_FLAG_CAN_NOT_GET_TEAM_MEMBER" ERROR_FLAG_CAN_NOT_GET_INVITE = "ERROR_FLAG_CAN_NOT_GET_INVITE" ERROR_FLAG_CAN_NOT_GET_INVITATION_CODE = "ERROR_FLAG_CAN_NOT_GET_INVITATION_CODE" ERROR_FLAG_CAN_NOT_GET_DOMAIN = "ERROR_FLAG_CAN_NOT_GET_DOMAIN" ERROR_FLAG_CAN_NOT_GET_ACTION = "ERROR_FLAG_CAN_NOT_GET_ACTION" ERROR_FLAG_CAN_NOT_GET_RESOURCE = "ERROR_FLAG_CAN_NOT_GET_RESOURCE" ERROR_FLAG_CAN_NOT_GET_RESOURCE_META_INFO = "ERROR_FLAG_CAN_NOT_GET_RESOURCE_META_INFO" ERROR_FLAG_CAN_NOT_GET_APP = "ERROR_FLAG_CAN_NOT_GET_APP" ERROR_FLAG_CAN_NOT_GET_BUILDER_DESCRIPTION = "ERROR_FLAG_CAN_NOT_GET_BUILDER_DESCRIPTION" ERROR_FLAG_CAN_NOT_GET_STATE = "ERROR_FLAG_CAN_NOT_GET_STATE" ERROR_FLAG_CAN_NOT_GET_SNAPSHOT = "ERROR_FLAG_CAN_NOT_GET_SNAPSHOT" // can not update resource ERROR_FLAG_CAN_NOT_UPDATE_USER = "ERROR_FLAG_CAN_NOT_UPDATE_USER" ERROR_FLAG_CAN_NOT_UPDATE_TEAM = "ERROR_FLAG_CAN_NOT_UPDATE_TEAM" ERROR_FLAG_CAN_NOT_UPDATE_TEAM_MEMBER = "ERROR_FLAG_CAN_NOT_UPDATE_TEAM_MEMBER" ERROR_FLAG_CAN_NOT_UPDATE_INVITE = "ERROR_FLAG_CAN_NOT_UPDATE_INVITE" ERROR_FLAG_CAN_NOT_UPDATE_INVITATION_CODE = "ERROR_FLAG_CAN_NOT_UPDATE_INVITATION_CODE" ERROR_FLAG_CAN_NOT_UPDATE_DOMAIN = "ERROR_FLAG_CAN_NOT_UPDATE_DOMAIN" ERROR_FLAG_CAN_NOT_UPDATE_ACTION = "ERROR_FLAG_CAN_NOT_UPDATE_ACTION" ERROR_FLAG_CAN_NOT_UPDATE_RESOURCE = "ERROR_FLAG_CAN_NOT_UPDATE_RESOURCE" ERROR_FLAG_CAN_NOT_UPDATE_APP = "ERROR_FLAG_CAN_NOT_UPDATE_APP" ERROR_FLAG_CAN_NOT_UPDATE_TREE_STATE = "ERROR_FLAG_CAN_NOT_UPDATE_TREE_STATE" ERROR_FLAG_CAN_NOT_UPDATE_SNAPSHOT = "ERROR_FLAG_CAN_NOT_UPDATE_SNAPSHOT" // can not delete ERROR_FLAG_CAN_NOT_DELETE_USER = "ERROR_FLAG_CAN_NOT_DELETE_USER" ERROR_FLAG_CAN_NOT_DELETE_TEAM = "ERROR_FLAG_CAN_NOT_DELETE_TEAM" ERROR_FLAG_CAN_NOT_DELETE_TEAM_MEMBER = "ERROR_FLAG_CAN_NOT_DELETE_TEAM_MEMBER" ERROR_FLAG_CAN_NOT_DELETE_INVITE = "ERROR_FLAG_CAN_NOT_DELETE_INVITE" ERROR_FLAG_CAN_NOT_DELETE_INVITATION_CODE = "ERROR_FLAG_CAN_NOT_DELETE_INVITATION_CODE" ERROR_FLAG_CAN_NOT_DELETE_DOMAIN = "ERROR_FLAG_CAN_NOT_DELETE_DOMAIN" ERROR_FLAG_CAN_NOT_DELETE_ACTION = "ERROR_FLAG_CAN_NOT_DELETE_ACTION" ERROR_FLAG_CAN_NOT_DELETE_RESOURCE = "ERROR_FLAG_CAN_NOT_DELETE_RESOURCE" ERROR_FLAG_CAN_NOT_DELETE_APP = "ERROR_FLAG_CAN_NOT_DELETE_APP" // can not other operation ERROR_FLAG_CAN_NOT_CHECK_TEAM_MEMBER = "ERROR_FLAG_CAN_NOT_CHECK_TEAM_MEMBER" ERROR_FLAG_CAN_NOT_DUPLICATE_APP = "ERROR_FLAG_CAN_NOT_DUPLICATE_APP" ERROR_FLAG_CAN_NOT_RELEASE_APP = "ERROR_FLAG_CAN_NOT_RELEASE_APP" ERROR_FLAG_CAN_NOT_TEST_RESOURCE_CONNECTION = "ERROR_FLAG_CAN_NOT_TEST_RESOURCE_CONNECTION" // permission failed ERROR_FLAG_ACCESS_DENIED = "ERROR_FLAG_ACCESS_DENIED" ERROR_FLAG_TEAM_CLOSED_THE_PERMISSION = "ERROR_FLAG_TEAM_CLOSED_THE_PERMISSION" ERROR_FLAG_EMAIL_ALREADY_USED = "ERROR_FLAG_EMAIL_ALREADY_USED" ERROR_FLAG_EMAIL_HAS_BEEN_TAKEN = "ERROR_FLAG_EMAIL_HAS_BEEN_TAKEN" ERROR_FLAG_INVITATION_CODE_ALREADY_USED = "ERROR_FLAG_INVITATION_CODE_ALREADY_USED" ERROR_FLAG_INVITATION_LINK_UNAVALIABLE = "ERROR_FLAG_INVITATION_LINK_UNAVALIABLE" ERROR_FLAG_TEAM_IDENTIFIER_HAS_BEEN_TAKEN = "ERROR_FLAG_TEAM_IDENTIFIER_HAS_BEEN_TAKEN" ERROR_FLAG_USER_ALREADY_JOINED_TEAM = "ERROR_FLAG_USER_ALREADY_JOINED_TEAM" ERROR_FLAG_SIGN_IN_FAILED = "ERROR_FLAG_SIGN_IN_FAILED" ERROR_FLAG_NO_SUCH_USER = "ERROR_FLAG_NO_SUCH_USER" // call resource failed ERROR_FLAG_SEND_EMAIL_FAILED = "ERROR_FLAG_SEND_EMAIL_FAILED" ERROR_FLAG_SEND_VERIFICATION_CODE_FAILED = "ERROR_FLAG_SEND_VERIFICATION_CODE_FAILED" ERROR_FLAG_CREATE_LINK_FAILED = "ERROR_FLAG_CREATE_LINK_FAILED" ERROR_FLAG_CREATE_UPLOAD_URL_FAILED = "ERROR_FLAG_CREATE_UPLOAD_URL_FAILED" ERROR_FLAG_EXECUTE_ACTION_FAILED = "ERROR_FLAG_EXECUTE_ACTION_FAILED" ERROR_FLAG_GENERATE_SQL_FAILED = "ERROR_FLAG_GENERATE_SQL_FAILED" // internal failed ERROR_FLAG_BUILD_TEAM_MEMBER_LIST_FAILED = "ERROR_FLAG_BUILD_TEAM_MEMBER_LIST_FAILED" ERROR_FLAG_BUILD_TEAM_CONFIG_FAILED = "ERROR_FLAG_BUILD_TEAM_CONFIG_FAILED" ERROR_FLAG_BUILD_TEAM_PERMISSION_FAILED = "ERROR_FLAG_BUILD_TEAM_PERMISSION_FAILED" ERROR_FLAG_BUILD_USER_INFO_FAILED = "ERROR_FLAG_BUILD_USER_INFO_FAILED" ERROR_FLAG_BUILD_APP_CONFIG_FAILED = "ERROR_FLAG_BUILD_APP_CONFIG_FAILED" ERROR_FLAG_GENERATE_PASSWORD_FAILED = "ERROR_FLAG_GENERATE_PASSWORD_FAILED" // google sheets oauth2 failed ERROR_FLAG_CAN_NOT_CREATE_TOKEN = "ERROR_FLAG_CAN_NOT_CREATE_TOKEN" ERROR_FLAG_CAN_NOT_AUTHORIZE_GOOGLE_SHEETS = "ERROR_FLAG_CAN_NOT_AUTHORIZE_GOOGLE_SHEETS" ERROR_FLAG_CAN_NOT_REFRESH_GOOGLE_SHEETS = "ERROR_FLAG_CAN_NOT_REFRESH_GOOGLE_SHEETS" ERROR_FLAG_CAN_NOT_FORK_APP = "ERROR_FLAG_CAN_NOT_FORK_APP" ERROR_FLAG_CAN_NOT_PUBLISH_APP_TO_MARKETPLACE = "ERROR_FLAG_CAN_NOT_PUBLISH_APP_TO_MARKETPLACE" ERROR_FLAG_CAN_NOT_GET_TOKEN = "ERROR_FLAG_CAN_NOT_GET_TOKEN" ERROR_FLAG_CAN_NOT_REFRESH_TOKEN = "ERROR_FLAG_CAN_NOT_REFRESH_TOKEN" // flow action ERROR_FLAG_CAN_NOT_GET_FLOW_ACTION = "ERROR_FLAG_CAN_NOT_GET_FLOW_ACTION" ERROR_FLAG_CAN_NOT_CREATE_FLOW_ACTION = "ERROR_FLAG_CAN_NOT_CREATE_FLOW_ACTION" ERROR_FLAG_CAN_NOT_UPDATE_FLOW_ACTION = "ERROR_FLAG_CAN_NOT_UPDATE_FLOW_ACTION" ERROR_FLAG_CAN_NOT_DELETE_FLOW_ACTION = "ERROR_FLAG_CAN_NOT_DELETE_FLOW_ACTION" ERROR_FLAG_EXECUTE_FLOW_ACTION_FAILED = "ERROR_FLAG_EXECUTE_FLOW_ACTION_FAILED" ERROR_FLAG_CAN_NOT_PARSE_EXPIRE_AT_TIME = "ERROR_FLAG_CAN_NOT_PARSE_EXPIRE_AT_TIME" ERROR_FLAG_CAN_NOT_PROCESS_FLOW_ACTION = "ERROR_FLAG_CAN_NOT_PROCESS_FLOW_ACTION" )
Variables ¶
View Source
var SKIPPING_MAGIC_ID = map[string]int{
"0": 0,
"-1": -1,
"-2": -2,
"-3": -3,
}
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Storage *storage.Storage Cache *cache.Cache Drive *drive.Drive RequestTokenValidator *tokenvalidator.RequestTokenValidator AttributeGroup *accesscontrol.AttributeGroup }
func NewControllerForBackend ¶
func NewControllerForBackend(storage *storage.Storage, cache *cache.Cache, drive *drive.Drive, validator *tokenvalidator.RequestTokenValidator, attrg *accesscontrol.AttributeGroup) *Controller
func NewControllerForBackendInternal ¶
func NewControllerForBackendInternal(storage *storage.Storage, drive *drive.Drive, validator *tokenvalidator.RequestTokenValidator, attrg *accesscontrol.AttributeGroup) *Controller
func (*Controller) BuildComponentTree ¶
func (controller *Controller) BuildComponentTree(app *model.App, parentNodeID int, componentNodeTree *model.ComponentNode) error
func (*Controller) ConfigApp ¶
func (controller *Controller) ConfigApp(c *gin.Context)
func (*Controller) CreateAction ¶
func (controller *Controller) CreateAction(c *gin.Context)
func (*Controller) CreateActionByBatch ¶
func (controller *Controller) CreateActionByBatch(c *gin.Context)
func (*Controller) CreateApp ¶
func (controller *Controller) CreateApp(c *gin.Context)
func (*Controller) CreateFlowAction ¶
func (controller *Controller) CreateFlowAction(c *gin.Context)
func (*Controller) CreateGoogleOAuthToken ¶
func (controller *Controller) CreateGoogleOAuthToken(c *gin.Context)
func (*Controller) CreateResource ¶
func (controller *Controller) CreateResource(c *gin.Context)
func (*Controller) DeleteAction ¶
func (controller *Controller) DeleteAction(c *gin.Context)
func (*Controller) DeleteApp ¶
func (controller *Controller) DeleteApp(c *gin.Context)
func (*Controller) DeleteFlowAction ¶
func (controller *Controller) DeleteFlowAction(c *gin.Context)
func (*Controller) DeleteResource ¶
func (controller *Controller) DeleteResource(c *gin.Context)
func (*Controller) DuplicateActionByVersion ¶
func (*Controller) DuplicateApp ¶
func (controller *Controller) DuplicateApp(c *gin.Context)
func (*Controller) DuplicateFlowActionsInternal ¶
func (controller *Controller) DuplicateFlowActionsInternal(c *gin.Context)
func (*Controller) DuplicateKVStateByVersion ¶
func (*Controller) DuplicateSetStateByVersion ¶
func (*Controller) DuplicateTreeStateByVersion ¶
func (controller *Controller) DuplicateTreeStateByVersion(c *gin.Context, fromTeamID int, toTeamID int, fromAppID int, toAppID int, fromVersion int, toVersion int, modifierID int) error
recover edit version treeState to target version (copy target version data to edit version)
func (*Controller) FeedbackBadRequest ¶
func (controller *Controller) FeedbackBadRequest(c *gin.Context, errorFlag string, errorMessage string)
func (*Controller) FeedbackCreated ¶
func (controller *Controller) FeedbackCreated(c *gin.Context, resp response.Response)
func (*Controller) FeedbackInternalServerError ¶
func (controller *Controller) FeedbackInternalServerError(c *gin.Context, errorFlag string, errorMessage string)
func (*Controller) FeedbackOK ¶
func (controller *Controller) FeedbackOK(c *gin.Context, resp response.Response)
func (*Controller) FeedbackRedirect ¶
func (controller *Controller) FeedbackRedirect(c *gin.Context, uri string)
func (*Controller) ForkMarketplaceApp ¶
func (controller *Controller) ForkMarketplaceApp(c *gin.Context)
func (*Controller) GenerateSQL ¶
func (controller *Controller) GenerateSQL(c *gin.Context)
func (*Controller) GetAction ¶
func (controller *Controller) GetAction(c *gin.Context)
func (*Controller) GetAllAppByPage ¶
func (controller *Controller) GetAllAppByPage(c *gin.Context)
func (*Controller) GetAllAppListByIDsInternal ¶
func (controller *Controller) GetAllAppListByIDsInternal(c *gin.Context)
func (*Controller) GetAllApps ¶
func (controller *Controller) GetAllApps(c *gin.Context)
func (*Controller) GetAllResources ¶
func (controller *Controller) GetAllResources(c *gin.Context)
func (*Controller) GetAppRoomBinaryConnectionAddress ¶
func (controller *Controller) GetAppRoomBinaryConnectionAddress(c *gin.Context)
func (*Controller) GetAppRoomConnectionAddress ¶
func (controller *Controller) GetAppRoomConnectionAddress(c *gin.Context)
func (*Controller) GetDashboardRoomConnectionAddress ¶
func (controller *Controller) GetDashboardRoomConnectionAddress(c *gin.Context)
func (*Controller) GetFirstStringParamValueFromURI ¶
func (*Controller) GetFlowAction ¶
func (controller *Controller) GetFlowAction(c *gin.Context)
func (*Controller) GetFullApp ¶
func (controller *Controller) GetFullApp(c *gin.Context)
func (*Controller) GetFullPublicApp ¶
func (controller *Controller) GetFullPublicApp(c *gin.Context)
func (*Controller) GetGoogleSheetsOAuth2Token ¶
func (controller *Controller) GetGoogleSheetsOAuth2Token(c *gin.Context)
func (*Controller) GetIntParamFromRequest ¶
func (*Controller) GetMagicIntParamFromRequest ¶
func (*Controller) GetMetaInfo ¶
func (controller *Controller) GetMetaInfo(c *gin.Context)
func (*Controller) GetOptionalStringFromFormData ¶
func (controller *Controller) GetOptionalStringFromFormData(c *gin.Context, paramName string) string
func (*Controller) GetReleaseVersionAppInternal ¶
func (controller *Controller) GetReleaseVersionAppInternal(c *gin.Context)
func (*Controller) GetResource ¶
func (controller *Controller) GetResource(c *gin.Context)
func (*Controller) GetResourceMetaInfo ¶
func (controller *Controller) GetResourceMetaInfo(c *gin.Context, resource *model.Resource) (*common.MetaInfoResult, error)
func (*Controller) GetSnapshot ¶
func (controller *Controller) GetSnapshot(c *gin.Context)
func (*Controller) GetSnapshotList ¶
func (controller *Controller) GetSnapshotList(c *gin.Context)
func (*Controller) GetStatus ¶
func (controller *Controller) GetStatus(c *gin.Context)
func (*Controller) GetStringFromFormData ¶
func (*Controller) GetStringParamFromHeader ¶
func (*Controller) GetStringParamFromRequest ¶
func (*Controller) GetStringParamValuesFromURI ¶
func (*Controller) GetTargetVersionFullApp ¶
func (controller *Controller) GetTargetVersionFullApp(c *gin.Context, teamID int, appID int, version int, getPublicApp bool) (*model.FullAppForExport, error)
func (*Controller) GetTargetVersionFullAppByAppID ¶
func (controller *Controller) GetTargetVersionFullAppByAppID(c *gin.Context, appID int, version int) (*model.FullAppForExport, error)
func (*Controller) GetTeamBuilderDesc ¶
func (controller *Controller) GetTeamBuilderDesc(c *gin.Context)
func (*Controller) GetUserAuthTokenFromHeader ¶
func (controller *Controller) GetUserAuthTokenFromHeader(c *gin.Context) (string, error)
func (*Controller) GetUserIDFromAuth ¶
func (controller *Controller) GetUserIDFromAuth(c *gin.Context) (int, error)
@note: this param was setted by authenticator.JWTAuth() method
func (*Controller) GetWorkflowAllFlowActionsInternal ¶
func (controller *Controller) GetWorkflowAllFlowActionsInternal(c *gin.Context)
func (*Controller) GetWorkflowFlowActionByIDInternal ¶
func (controller *Controller) GetWorkflowFlowActionByIDInternal(c *gin.Context)
func (*Controller) GetWorkflowFlowActionsByTypeInternal ¶
func (controller *Controller) GetWorkflowFlowActionsByTypeInternal(c *gin.Context)
func (*Controller) GoogleOAuth2Exchange ¶
func (controller *Controller) GoogleOAuth2Exchange(c *gin.Context)
func (*Controller) InitAppSnapshot ¶
func (controller *Controller) InitAppSnapshot(c *gin.Context, teamID int, appID int) (*model.AppSnapshot, error)
func (*Controller) IsPublicApp ¶
func (controller *Controller) IsPublicApp(c *gin.Context)
func (*Controller) PublishAppToMarketplaceInternal ¶
func (controller *Controller) PublishAppToMarketplaceInternal(c *gin.Context)
hold publish or remove from marketplace
func (*Controller) RecoverSnapshot ¶
func (controller *Controller) RecoverSnapshot(c *gin.Context)
func (*Controller) RefreshGoogleSheetsOAuth ¶
func (controller *Controller) RefreshGoogleSheetsOAuth(c *gin.Context)
func (*Controller) ReleaseApp ¶
func (controller *Controller) ReleaseApp(c *gin.Context)
func (*Controller) RunAction ¶
func (controller *Controller) RunAction(c *gin.Context)
func (*Controller) RunFlowAction ¶
func (controller *Controller) RunFlowAction(c *gin.Context)
func (*Controller) RunFlowActionInternal ¶
func (controller *Controller) RunFlowActionInternal(c *gin.Context)
func (*Controller) RunPublicAction ¶
func (controller *Controller) RunPublicAction(c *gin.Context)
func (*Controller) SaveAppSnapshot ¶
func (*Controller) SaveAppSnapshotByVersion ¶
func (controller *Controller) SaveAppSnapshotByVersion(c *gin.Context, teamID int, appID int, userID int, fromVersion int, toVersion int, snapshotTriggerMode int) (*model.AppSnapshot, error)
SaveAppSnapshotByVersion() method do following process: - get current version snapshot - set it to target version - save it - create new empty snapshot for current version
func (*Controller) SearchAppByKeywordsByPage ¶
func (controller *Controller) SearchAppByKeywordsByPage(c *gin.Context)
func (*Controller) SearchAppByKeywordsByPageUsingURIParam ¶
func (controller *Controller) SearchAppByKeywordsByPageUsingURIParam(c *gin.Context)
func (*Controller) SetActionTutorialLink ¶
func (controller *Controller) SetActionTutorialLink(c *gin.Context)
func (*Controller) TakeSnapshot ¶
func (controller *Controller) TakeSnapshot(c *gin.Context)
func (*Controller) TestConnection ¶
func (controller *Controller) TestConnection(c *gin.Context)
func (*Controller) TestFirstStringParamValueFromURI ¶
func (*Controller) TestMagicIntParamFromRequest ¶
func (controller *Controller) TestMagicIntParamFromRequest(c *gin.Context, paramName string) (int, error)
test if Magic int exists in param, if not ,return 0 and an error.
func (*Controller) TestResourceConnection ¶
func (*Controller) TestStringParamFromRequest ¶
func (*Controller) UpdateAction ¶
func (controller *Controller) UpdateAction(c *gin.Context)
func (*Controller) UpdateActionByBatch ¶
func (controller *Controller) UpdateActionByBatch(c *gin.Context)
func (*Controller) UpdateFlowAction ¶
func (controller *Controller) UpdateFlowAction(c *gin.Context)
func (*Controller) UpdateFlowActionByBatch ¶
func (controller *Controller) UpdateFlowActionByBatch(c *gin.Context)
func (*Controller) UpdateResource ¶
func (controller *Controller) UpdateResource(c *gin.Context)
func (*Controller) ValidateActionTemplate ¶
func (*Controller) ValidateFlowActionTemplate ¶
func (controller *Controller) ValidateFlowActionTemplate(c *gin.Context, flowAction *model.FlowAction) error
func (*Controller) ValidateRequestTokenFromHeader ¶
func (*Controller) ValidateRequestTokenFromHeaderByStringMap ¶
func (*Controller) ValidateResourceConternt ¶
type RoomRequest ¶
type RoomRequest struct {
Name string `json:"RoomName" validate:"required"`
}
Source Files
¶
- action.go
- action_helper.go
- action_management.go
- app.go
- app_helper.go
- app_internal.go
- builder.go
- controller.go
- flow_action.go
- flow_action_helper.go
- flow_action_internal.go
- flow_action_internal_heper.go
- internal_action.go
- oauth2.go
- public_action.go
- public_app.go
- resource.go
- resource_helper.go
- resource_peripheral.go
- room.go
- room_helper.go
- status.go
- utils.go
Click to show internal directories.
Click to hide internal directories.