Documentation
¶
Index ¶
- Constants
- Variables
- func GetCDocJoinedWorkspace(st istructs.IState, invitingWorkspaceWSID int64) (svbCDocJoinedWorkspace istructs.IStateValue, skb istructs.IStateKeyBuilder, ...)
- func GetCDocJoinedWorkspaceForUpdate(st istructs.IState, intents istructs.IIntents, invitingWorkspaceWSID int64) (svbCDocJoinedWorkspace istructs.IStateValueBuilder, ok bool, err error)
- func GetCDocJoinedWorkspaceForUpdateRequired(st istructs.IState, intents istructs.IIntents, invitingWorkspaceWSID int64) (svbCDocJoinedWorkspace istructs.IStateValueBuilder, err error)
- func GetSubjectIdxViewKeyBuilder(login string, s istructs.IState) (istructs.IStateKeyBuilder, error)
- func Provide(cfg *istructsmem.AppConfigType, timeFunc coreutils.TimeFunc, ...)
- func SubjectExistByBothLogins(login string, st istructs.IState) (ok bool, actualLogin string, _ error)
- func SubjectExistsByLogin(login string, state istructs.IState) (ok bool, _ error)
- type State
Constants ¶
View Source
const ( Field_Roles = "Roles" Field_Login = "Login" Field_InvitingWorkspaceWSID = "InvitingWorkspaceWSID" Field_SubjectKind = "SubjectKind" Field_ProfileWSID = "ProfileWSID" Field_SubjectID = "SubjectID" Field_LoginHash = "LoginHash" )
View Source
const ( State_Null int32 = iota State_ToBeInvited State_Invited State_ToBeJoined State_Joined State_ToUpdateRoles State_ToBeCancelled State_Cancelled State_ToBeLeft State_Left State_FakeLast )
View Source
const ( EmailTemplatePlaceholder_VerificationCode = "${VerificationCode}" EmailTemplatePlaceholder_InviteID = "${InviteID}" EmailTemplatePlaceholder_WSID = "${WSID}" EmailTemplatePlaceholder_Roles = "${Roles}" EmailTemplatePlaceholder_WSName = "${WSName}" EmailTemplatePlaceholder_Email = "${Email}" )
Variables ¶
View Source
var ( QNameViewJoinedWorkspaceIndex = appdef.NewQName(appdef.SysPackage, "JoinedWorkspaceIndexView") QNameProjectorJoinedWorkspaceIndex = appdef.NewQName(appdef.SysPackage, "ProjectorJoinedWorkspaceIndex") QNameCDocJoinedWorkspace = appdef.NewQName(appdef.SysPackage, "JoinedWorkspace") QNameCDocSubject = appdef.NewQName(appdef.SysPackage, "Subject") QNameViewSubjectsIdx = appdef.NewQName(appdef.SysPackage, "ViewSubjectsIdx") QNameApplyViewSubjectsIdx = appdef.NewQName(appdef.SysPackage, "ApplyViewSubjectsIdx") )
TODO improvements 1. Do all numeric constants start from 1 and set type for it 2. Add QName validation in RecordStorage GetBatch method 3. Add projector names via appstructs for validation
Functions ¶
func GetCDocJoinedWorkspace ¶
func GetCDocJoinedWorkspace(st istructs.IState, invitingWorkspaceWSID int64) (svbCDocJoinedWorkspace istructs.IStateValue, skb istructs.IStateKeyBuilder, ok bool, err error)
func Provide ¶
func Provide(cfg *istructsmem.AppConfigType, timeFunc coreutils.TimeFunc, federation federation.IFederation, itokens itokens.ITokens, smtpCfg smtp.Cfg)
Types ¶
Source Files
¶
- consts.go
- errors.go
- impl.go
- impl_applycancelacceptedinvite.go
- impl_applyinvitation.go
- impl_applyjoinworkspace.go
- impl_applyleaveworkspace.go
- impl_applyupdateinviteroles.go
- impl_applyviewsubjectsidx.go
- impl_cancelsentinvite.go
- impl_createjoinedworkspace.go
- impl_deactivatejoinedworkspace.go
- impl_initiatecancelacceptedinvite.go
- impl_initiateinvitationbyemail.go
- impl_initiatejoinworkspace.go
- impl_initiateleaveworkspace.go
- impl_initiateupdateinviteroles.go
- impl_inviteindexprojector.go
- impl_joinedworkspaceindexprojector.go
- impl_updatejoinedworkspaceroles.go
- provide.go
- utils.go
Click to show internal directories.
Click to hide internal directories.