Versions in this module Expand all Collapse all v0 v0.0.3 Feb 8, 2024 v0.0.2 Jan 29, 2024 Changes in this version + const ErrAuthData + const RpcErrorCode_AuthChallengeResponseIsNotSet + const RpcErrorCode_BPP_GenerateRandomSalt + const RpcErrorCode_BPP_PackSymbols + const RpcErrorCode_CaptchaAnswerIsNotSet + const RpcErrorCode_CaptchaAnswerIsWrong + const RpcErrorCode_EmailAddressIsNotValid + const RpcErrorCode_EmailAddressIsUsed + const RpcErrorCode_EmailChangeIsNotFound + const RpcErrorCode_JWTCreation + const RpcErrorCode_NameIsNotSet + const RpcErrorCode_NameIsTooLong + const RpcErrorCode_NameIsUsed + const RpcErrorCode_NewEmailIsNotSet + const RpcErrorCode_NewPasswordIsNotSet + const RpcErrorCode_PasswordChangeIsNotFound + const RpcErrorCode_PasswordIsNotSet + const RpcErrorCode_PasswordIsNotValid + const RpcErrorCode_PasswordIsTooLong + const RpcErrorCode_PasswordIsWrong + const RpcErrorCode_RequestIdGenerator + const RpcErrorCode_RequestIdIsNotSet + const RpcErrorCode_SmtpModule + const RpcErrorCode_StepIsUnknown + const RpcErrorCode_UserAlreadyStartedToChangeEmail + const RpcErrorCode_UserAlreadyStartedToChangePassword + const RpcErrorCode_UserCanNotLogIn + const RpcErrorCode_UserHasAlreadyStartedToLogIn + const RpcErrorCode_UserHasNotStartedToLogIn + const RpcErrorCode_UserIdIsNotSet + const RpcErrorCode_UserIsAlreadyLoggedIn + const RpcErrorCode_UserIsNotFound + const RpcErrorCode_UserPreSessionIsNotFound + const RpcErrorCode_VerificationCodeGenerator + const RpcErrorCode_VerificationCodeIsNotSet + const RpcErrorCode_VerificationCodeIsWrong + const RpcErrorMsgF_BPP_PackSymbols + const RpcErrorMsgF_JWTCreation + const RpcErrorMsg_AuthChallengeResponseIsNotSet + const RpcErrorMsg_BPP_GenerateRandomSalt + const RpcErrorMsg_CaptchaAnswerIsNotSet + const RpcErrorMsg_CaptchaAnswerIsWrong + const RpcErrorMsg_EmailAddressIsNotValid + const RpcErrorMsg_EmailAddressIsUsed + const RpcErrorMsg_EmailChangeIsNotFound + const RpcErrorMsg_NameIsNotSet + const RpcErrorMsg_NameIsTooLong + const RpcErrorMsg_NameIsUsed + const RpcErrorMsg_NewEmailIsNotSet + const RpcErrorMsg_NewPasswordIsNotSet + const RpcErrorMsg_PasswordChangeIsNotFound + const RpcErrorMsg_PasswordIsNotSet + const RpcErrorMsg_PasswordIsNotValid + const RpcErrorMsg_PasswordIsTooLong + const RpcErrorMsg_PasswordIsWrong + const RpcErrorMsg_RequestIdGenerator + const RpcErrorMsg_RequestIdIsNotSet + const RpcErrorMsg_SmtpModule + const RpcErrorMsg_StepIsUnknown + const RpcErrorMsg_UserAlreadyStartedToChangeEmail + const RpcErrorMsg_UserAlreadyStartedToChangePassword + const RpcErrorMsg_UserCanNotLogIn + const RpcErrorMsg_UserHasAlreadyStartedToLogIn + const RpcErrorMsg_UserHasNotStartedToLogIn + const RpcErrorMsg_UserIdIsNotSet + const RpcErrorMsg_UserIsAlreadyLoggedIn + const RpcErrorMsg_UserIsNotFound + const RpcErrorMsg_UserPreSessionIsNotFound + const RpcErrorMsg_VerificationCodeGenerator + const RpcErrorMsg_VerificationCodeIsNotSet + const RpcErrorMsg_VerificationCodeIsWrong + func GetMapOfHttpStatusCodesByRpcErrorCodes() map[int]int + type Server struct + func NewServer(s cm.ISettings) (srv *Server, err error) + func (srv *Server) ApproveAndRegisterUser(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) BanUser(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) ChangeEmail(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) ChangePassword(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) GetListOfLoggedUsers(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) GetListenDsn() (dsn string) + func (srv *Server) GetSelfRoles(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) GetStopChannel() *chan bool + func (srv *Server) GetUserRoles(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) IsUserLoggedIn(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) LogUserIn(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) LogUserOut(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) Ping(_ *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) RegisterUser(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) ReportStart() + func (srv *Server) SetUserRoleAuthor(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) SetUserRoleReader(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) SetUserRoleWriter(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) ShowDiagnosticData(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) Start() (err error) + func (srv *Server) Stop() (err error) + func (srv *Server) Test(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) UnbanUser(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError) + func (srv *Server) UseConstructor(stn cm.ISettings) (cm.IServer, error) + func (srv *Server) ViewUserParameters(params *json.RawMessage, _ *jrm1.ResponseMetaData) (result any, re *jrm1.RpcError)