callme

package
v1.0.53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHttpStatusInternalServerError = errors.New("Internal Server Error")

Functions

func CallDatabaseFunction

func CallDatabaseFunction(c *gin.Context, out interface{}, fCall string, encPat string, data ...interface{}) (err error)

CallDatabaseFunction will call the named function with output data placed in 'out'. 'out' is the address of a data type suitable to be passed to json.Unmarshal to decode the data.

func CallDatabaseJSONFunction

func CallDatabaseJSONFunction(c *gin.Context, fCall string, encPat string, data ...interface{}) (rv string, err error)

func GenUUID

func GenUUID() string

GenUUID generates a UUID and returns it.

func LogJsonReturned

func LogJsonReturned(x interface{}) interface{}

func ResetLogFile

func ResetLogFile(fp *os.File)

func SetupCallDb

func SetupCallDb(x *data.AppConfig, fp *os.File)

func SetupConnectToCallMe

func SetupConnectToCallMe(xctx context.Context, xconn *pgxpool.Pool)

Types

type RvAuth2FaGetSecret

type RvAuth2FaGetSecret struct {
	StdErrorReturn
	Secret2Fa  string `json:"secret_2fa,omitempty"`
	UserId     string `json:"user_id,omitempty"`
	ClientId   string `json:"client_id,omitempty"`
	Require2Fa string `json:"require_2fa,omitempty"`
}

func CallAuth2FaGetSecret

func CallAuth2FaGetSecret(c *gin.Context, email string) (rv RvAuth2FaGetSecret, err error)

CallAuth2FaGetSecret will call q_auth_v1_2fa_get_secret in the database.

type RvAuthChangeAccountInfo

type RvAuthChangeAccountInfo struct {
	StdErrorReturn
	FirstName string `json:"first_name,omitempty"`
	LastName  string `json:"last_name,omitempty"`
}

func CallAuthChangeAccountInfo

func CallAuthChangeAccountInfo(c *gin.Context, userId string, firstName string, lastName string) (rv RvAuthChangeAccountInfo, err error)

CallAuthChangeAccountInfo will call q_auth_v1_change_account_info in the database.

type RvAuthChangeEmailAddress

type RvAuthChangeEmailAddress struct {
	StdErrorReturn
	FirstName string `json:"first_name,omitempty"`
	LastName  string `json:"last_name,omitempty"`
}

func CallAuthChangeEmailAddress

func CallAuthChangeEmailAddress(c *gin.Context, oldEmail string, newEmail string, pw string, userId string) (rv RvAuthChangeEmailAddress, err error)

CallAuthChangeEmailAddress will call q_auth_v1_change_email_address in the database.

type RvAuthChangePassword

type RvAuthChangePassword struct {
	StdErrorReturn
	FirstName string `json:"first_name,omitempty"`
	LastName  string `json:"last_name,omitempty"`
}

func CallAuthChangePassword

func CallAuthChangePassword(c *gin.Context, email string, pw string, newPw string) (rv RvAuthChangePassword, err error)

CallAuthChangePassword will call q_auth_v1_change_password in the database.

type RvAuthChangePasswordAdmin

type RvAuthChangePasswordAdmin struct {
	StdErrorReturn
	FirstName string `json:"first_name,omitempty"`
	LastName  string `json:"last_name,omitempty"`
}

func CallAuthChangePasswordAdmin

func CallAuthChangePasswordAdmin(c *gin.Context, adminUserId string, email string, newPw string) (rv RvAuthChangePasswordAdmin, err error)

CallAuthChangePasswordAdmin will call q_auth_v1_change_password_admin in the database.

type RvAuthChangePasswordRootCli

type RvAuthChangePasswordRootCli struct {
	StdErrorReturn
	FirstName string `json:"first_name,omitempty"`
	LastName  string `json:"last_name,omitempty"`
}

func CallAuthChangePasswordRootCli

func CallAuthChangePasswordRootCli(c *gin.Context, email string, newPw string) (rv RvAuthChangePasswordRootCli, err error)

CallAuthChangePasswordRootCli will call q_auth_v1_change_password_root_cli in the database.

type RvAuthCreateAuthToken

type RvAuthCreateAuthToken struct {
	StdErrorReturn
	AuthToken string `json:"auth_token,omitempty"`
}

func CallAuthCreateAuthToken

func CallAuthCreateAuthToken(c *gin.Context, email string, authToken string) (rv RvAuthCreateAuthToken, err error)

CallAuthCreateAuthToken will call q_auth_v1_create_auth_token in the database.

type RvAuthCreateUseToken

type RvAuthCreateUseToken struct {
	StdErrorReturn
	UserId    string `json:"user_id,omitempty"`
	AuthToken string `json:"auth_token,omitempty"`
}

func CallAuthCreateUseToken

func CallAuthCreateUseToken(c *gin.Context, userId string, token string) (rv RvAuthCreateUseToken, err error)

CallAuthCreateUseToken will call q_auth_v1_create_use_token in the database.

type RvAuthDeleteAccount

type RvAuthDeleteAccount struct {
	StdErrorReturn
	FirstName string `json:"first_name,omitempty"`
	LastName  string `json:"last_name,omitempty"`
}

func CallAuthDeleteAccount

func CallAuthDeleteAccount(c *gin.Context, email string, pw string) (rv RvAuthDeleteAccount, err error)

CallAuthDeleteAccount will call q_auth_v1_delete_account in the database.

type RvAuthEmailVerify

type RvAuthEmailVerify struct {
	StdErrorReturn
	Email     string `json:"email,omitempty"`
	TmpToken  string `json:"tmp_token,omitempty"`
	AuthToken string `json:"auth_token,omitempty"`
	UserId    string `json:"user_id,omitempty"`
}

func CallAuthEmailVerify

func CallAuthEmailVerify(c *gin.Context, emailVerifyToken string, n6Flag string) (rv RvAuthEmailVerify, err error)

CallAuthEmailVerify will call q_auth_v1_email_verify in the database.

type RvAuthEtagDeviceMark

type RvAuthEtagDeviceMark struct {
	StdErrorReturn
	Nr string `json:"nr,omitempty"`
}

func CallAuthEtagDeviceMark

func CallAuthEtagDeviceMark(c *gin.Context, seenId string, userId string) (rv RvAuthEtagDeviceMark, err error)

CallAuthEtagDeviceMark will call q_auth_v1_etag_device_mark in the database.

type RvAuthEtagSeen

type RvAuthEtagSeen struct {
	StdErrorReturn
	UserId string `json:"user_id,omitempty"`
	Id     string `json:"id,omitempty"`
	Etag   string `json:"etag,omitempty"`
}

func CallAuthEtagSeen

func CallAuthEtagSeen(c *gin.Context, id string, etag string) (rv RvAuthEtagSeen, err error)

CallAuthEtagSeen will call q_auth_v1_etag_seen in the database.

type RvAuthGetAllTokens

type RvAuthGetAllTokens struct {
	StdErrorReturn
	UserId    string `json:"user_id,omitempty"`
	TokenList string `json:"token_list,omitempty"`
}

func CallAuthGetAllTokens

func CallAuthGetAllTokens(c *gin.Context, authToken string, deleteAct string) (rv RvAuthGetAllTokens, err error)

CallAuthGetAllTokens will call q_auth_v1_get_all_tokens in the database.

type RvAuthGetEmailFromAuthToken

type RvAuthGetEmailFromAuthToken struct {
	StdErrorReturn
	UserId string `json:"user_id,omitempty"`
	Scid   string `json:"scid,omitempty"`
	Email  string `json:"email,omitempty"`
	Valid  string `json:"valid,omitempty"`
}

func CallAuthGetEmailFromAuthToken

func CallAuthGetEmailFromAuthToken(c *gin.Context, authToken string) (rv RvAuthGetEmailFromAuthToken, err error)

CallAuthGetEmailFromAuthToken will call q_auth_v1_get_email_from_auth_token in the database.

type RvAuthGetScid

type RvAuthGetScid struct {
	StdErrorReturn
	UserId string `json:"user_id,omitempty"`
	Scid   string `json:"scid,omitempty"`
	Valid  string `json:"valid,omitempty"`
}

func CallAuthGetScid

func CallAuthGetScid(c *gin.Context, email string, authToken string) (rv RvAuthGetScid, err error)

CallAuthGetScid will call q_auth_v1_get_scid in the database.

type RvAuthGetUserConfig

type RvAuthGetUserConfig struct {
	StdErrorReturn
	Value    string `json:"value,omitempty"`
	ConfigId string `json:"config_id,omitempty"`
}

func CallAuthGetUserConfig

func CallAuthGetUserConfig(c *gin.Context, userId string, paramName string) (rv RvAuthGetUserConfig, err error)

CallAuthGetUserConfig will call q_auth_v1_get_user_config in the database.

type RvAuthGetUserFromTmpToken added in v1.0.50

type RvAuthGetUserFromTmpToken struct {
	StdErrorReturn
	AuthToken string `json:"auth_token,omitempty"`
	UserId    string `json:"user_id,omitempty"`
	ScId      string `json:"sc_id,omitempty"`
}

func CallAuthGetUserFromTmpToken added in v1.0.50

func CallAuthGetUserFromTmpToken(c *gin.Context, tmpToken string, email string) (rv RvAuthGetUserFromTmpToken, err error)

CallAuthGetUserFromTmpToken will call q_auth_v1_get_user_from_tmp_token in the database.

type RvAuthGetUserInfo

type RvAuthGetUserInfo struct {
	StdErrorReturn
	Email     string `json:"email,omitempty"`
	FirstName string `json:"first_name,omitempty"`
	LastName  string `json:"last_name,omitempty"`
}

func CallAuthGetUserInfo

func CallAuthGetUserInfo(c *gin.Context, userId string) (rv RvAuthGetUserInfo, err error)

CallAuthGetUserInfo will call q_auth_v1_get_user_info in the database.

type RvAuthLogin

type RvAuthLogin struct {
	StdErrorReturn
	UserId      string `json:"user_id,omitempty"`
	AuthToken   string `json:"auth_token,omitempty"`
	TmpToken    string `json:"tmp_token,omitempty"`
	Require2Fa  string `json:"require_2fa,omitempty"`
	Secret2Fa   string `json:"secret_2fa,omitempty"`
	AccountType string `json:"account_type,omitempty"`
	Privileges  string `json:"privileges,omitempty"`
	UserConfig  string `json:"user_config,omitempty"`
	FirstName   string `json:"first_name,omitempty"`
	LastName    string `json:"last_name,omitempty"`
	ClientId    string `json:"client_id,omitempty"`
	AcctState   string `json:"acct_state,omitempty"`
}

func CallAuthLogin

func CallAuthLogin(c *gin.Context, email string, pw string, amIKnown string, fingerprint string, scId string, hashOfHeaders string, xsrfId string) (rv RvAuthLogin, err error)

CallAuthLogin will call q_auth_v1_login in the database.

type RvAuthLoginCleanupFingerprintData

type RvAuthLoginCleanupFingerprintData struct {
	StdErrorReturn
}

func CallAuthLoginCleanupFingerprintData

func CallAuthLoginCleanupFingerprintData(c *gin.Context, fingerprintData string, state string, userId string) (rv RvAuthLoginCleanupFingerprintData, err error)

CallAuthLoginCleanupFingerprintData will call q_auth_v1_login_cleanup_fingerprint_data in the database.

type RvAuthLogout

type RvAuthLogout struct {
	StdErrorReturn
}

func CallAuthLogout

func CallAuthLogout(c *gin.Context, email string, authToken string) (rv RvAuthLogout, err error)

CallAuthLogout will call q_auth_v1_logout in the database.

type RvAuthRecoverPassword01Setup

type RvAuthRecoverPassword01Setup struct {
	StdErrorReturn
	RecoveryToken   string `json:"recovery_token,omitempty"`
	RecoveryTokenN6 string `json:"recovery_token_n6,omitempty"`
	FirstName       string `json:"first_name,omitempty"`
	LastName        string `json:"last_name,omitempty"`
	N6Flag          string `json:"n6_flag,omitempty"`
}

func CallAuthRecoverPassword01Setup

func CallAuthRecoverPassword01Setup(c *gin.Context, email string) (rv RvAuthRecoverPassword01Setup, err error)

CallAuthRecoverPassword01Setup will call q_auth_v1_recover_password_01_setup in the database.

type RvAuthRecoverPassword02FetchInfo

type RvAuthRecoverPassword02FetchInfo struct {
	StdErrorReturn
	Email      string `json:"email,omitempty"`
	FirstName  string `json:"first_name,omitempty"`
	LastName   string `json:"last_name,omitempty"`
	Require2Fa string `json:"require_2fa,omitempty"`
}

func CallAuthRecoverPassword02FetchInfo

func CallAuthRecoverPassword02FetchInfo(c *gin.Context, email string, recoveryToken string) (rv RvAuthRecoverPassword02FetchInfo, err error)

CallAuthRecoverPassword02FetchInfo will call q_auth_v1_recover_password_02_fetch_info in the database.

type RvAuthRecoverPassword03SetPassword

type RvAuthRecoverPassword03SetPassword struct {
	StdErrorReturn
	RecoveryToken string `json:"recovery_token,omitempty"`
	FirstName     string `json:"first_name,omitempty"`
	LastName      string `json:"last_name,omitempty"`
}

func CallAuthRecoverPassword03SetPassword

func CallAuthRecoverPassword03SetPassword(c *gin.Context, email string, newPw string, recoveryToken string) (rv RvAuthRecoverPassword03SetPassword, err error)

CallAuthRecoverPassword03SetPassword will call q_auth_v1_recover_password_03_set_password in the database.

type RvAuthRefreshToken

type RvAuthRefreshToken struct {
	StdErrorReturn
	AuthToken    string `json:"auth_token,omitempty"`
	UserId       string `json:"user_id,omitempty"`
	AccountType  string `json:"account_type,omitempty"`
	FirstName    string `json:"first_name,omitempty"`
	LastName     string `json:"last_name,omitempty"`
	EmailAddress string `json:"email_address,omitempty"`
	AcctState    string `json:"acct_state,omitempty"`
}

func CallAuthRefreshToken

func CallAuthRefreshToken(c *gin.Context, userId string, authToken string, amIKnown string) (rv RvAuthRefreshToken, err error)

CallAuthRefreshToken will call q_auth_v1_refresh_token in the database.

type RvAuthRegenOtp

type RvAuthRegenOtp struct {
	StdErrorReturn
	UserId    string `json:"user_id,omitempty"`
	FirstName string `json:"first_name,omitempty"`
	LastName  string `json:"last_name,omitempty"`
}

func CallAuthRegenOtp

func CallAuthRegenOtp(c *gin.Context, email string, pw string) (rv RvAuthRegenOtp, err error)

CallAuthRegenOtp will call q_auth_v1_regen_otp in the database.

type RvAuthRegister

type RvAuthRegister struct {
	StdErrorReturn
	UserId           string `json:"user_id,omitempty"`
	EmailVerifyToken string `json:"email_verify_token,omitempty"`
	Require2Fa       string `json:"require_2fa,omitempty"`
	TmpToken         string `json:"tmp_token,omitempty"`
	Secret2Fa        string `json:"secret_2fa,omitempty"`
	N6               string `json:"n6,omitempty"`
}

func CallAuthRegister

func CallAuthRegister(c *gin.Context, email string, pw string, firstName string, lastName string, secret string, n6Flag string, agreeEula string, agreeTos string) (rv RvAuthRegister, err error)

CallAuthRegister will call q_auth_v1_register in the database.

type RvAuthRegisterAdmin

type RvAuthRegisterAdmin struct {
	StdErrorReturn
	UserId           string `json:"user_id,omitempty"`
	EmailVerifyToken string `json:"email_verify_token,omitempty"`
	Require2Fa       string `json:"require_2fa,omitempty"`
	TmpToken         string `json:"tmp_token,omitempty"`
	Secret2Fa        string `json:"secret_2fa,omitempty"`
	N6               string `json:"n6,omitempty"`
}

func CallAuthRegisterAdmin

func CallAuthRegisterAdmin(c *gin.Context, email string, pw string, firstName string, lastName string, secret string, adminPassword string, specifedRoleName string, adminUserId string, n6Flag string) (rv RvAuthRegisterAdmin, err error)

CallAuthRegisterAdmin will call q_auth_v1_register_admin in the database.

type RvAuthRegisterClient

type RvAuthRegisterClient struct {
	StdErrorReturn
	UserId           string `json:"user_id,omitempty"`
	EmailVerifyToken string `json:"email_verify_token,omitempty"`
	Require2Fa       string `json:"require_2fa,omitempty"`
	TmpToken         string `json:"tmp_token,omitempty"`
	Secret2Fa        string `json:"secret_2fa,omitempty"`
	N6               string `json:"n6,omitempty"`
}

func CallAuthRegisterClient

func CallAuthRegisterClient(c *gin.Context, email string, pw string, firstName string, lastName string, secret string, registrationToken string, n6Flag string) (rv RvAuthRegisterClient, err error)

CallAuthRegisterClient will call q_auth_v1_register_client in the database.

type RvAuthRegisterResendEmailLink struct {
	StdErrorReturn
	EmailVerifyToken string `json:"email_verify_token,omitempty"`
	Require2Fa       string `json:"require_2fa,omitempty"`
	TmpToken         string `json:"tmp_token,omitempty"`
	N6               string `json:"n6,omitempty"`
}
func CallAuthRegisterResendEmailLink(c *gin.Context, email string, oldEmailVerifyToken string) (rv RvAuthRegisterResendEmailLink, err error)

CallAuthRegisterResendEmailLink will call q_auth_v1_register_resend_email_link in the database.

type RvAuthRegisterToken

type RvAuthRegisterToken struct {
	StdErrorReturn
	UserId     string `json:"user_id,omitempty"`
	TmpToken   string `json:"tmp_token,omitempty"`
	LoginToken string `json:"login_token,omitempty"`
	FirstName  string `json:"first_name,omitempty"`
	LastName   string `json:"last_name,omitempty"`
	Email      string `json:"email,omitempty"`
}

func CallAuthRegisterToken

func CallAuthRegisterToken(c *gin.Context, parentUserId string) (rv RvAuthRegisterToken, err error)

CallAuthRegisterToken will call q_auth_v1_register_token in the database.

type RvAuthRegisterUnPw

type RvAuthRegisterUnPw struct {
	StdErrorReturn
	UserId    string `json:"user_id,omitempty"`
	TmpToken  string `json:"tmp_token,omitempty"`
	Pw        string `json:"pw,omitempty"`
	FirstName string `json:"first_name,omitempty"`
	LastName  string `json:"last_name,omitempty"`
	Email     string `json:"email,omitempty"`
}

func CallAuthRegisterUnPw

func CallAuthRegisterUnPw(c *gin.Context, parentUserId string, email string) (rv RvAuthRegisterUnPw, err error)

CallAuthRegisterUnPw will call q_auth_v1_register_un_pw in the database.

type RvAuthRequires2Fa

type RvAuthRequires2Fa struct {
	StdErrorReturn
	UserId     string `json:"user_id,omitempty"`
	Require2Fa string `json:"require_2fa,omitempty"`
}

func CallAuthRequires2Fa

func CallAuthRequires2Fa(c *gin.Context, email string) (rv RvAuthRequires2Fa, err error)

CallAuthRequires2Fa will call q_auth_v1_requires_2fa in the database.

type RvAuthResendEmailRegister

type RvAuthResendEmailRegister struct {
	StdErrorReturn
	UserId           string `json:"user_id,omitempty"`
	EmailVerifyToken string `json:"email_verify_token,omitempty"`
	Require2Fa       string `json:"require_2fa,omitempty"`
	TmpToken         string `json:"tmp_token,omitempty"`
	FirstName        string `json:"first_name,omitempty"`
	LastName         string `json:"last_name,omitempty"`
	N6               string `json:"n6,omitempty"`
}

func CallAuthResendEmailRegister

func CallAuthResendEmailRegister(c *gin.Context, email string, tmpToken string, n6Flag string) (rv RvAuthResendEmailRegister, err error)

CallAuthResendEmailRegister will call q_auth_v1_resend_email_register in the database.

type RvAuthSetClient

type RvAuthSetClient struct {
	StdErrorReturn
	ClientId string `json:"client_id,omitempty"`
}

func CallAuthSetClient

func CallAuthSetClient(c *gin.Context, email string, clientName string) (rv RvAuthSetClient, err error)

CallAuthSetClient will call q_auth_v1_set_client in the database.

type RvAuthSetUserConfig

type RvAuthSetUserConfig struct {
	StdErrorReturn
	UserConfig string `json:"user_config,omitempty"`
}

func CallAuthSetUserConfig

func CallAuthSetUserConfig(c *gin.Context, name string, value string, userId string) (rv RvAuthSetUserConfig, err error)

CallAuthSetUserConfig will call q_auth_v1_set_user_config in the database.

type RvAuthSetupStartupOneTime

type RvAuthSetupStartupOneTime struct {
	StdErrorReturn
	DbName string `json:"db_name,omitempty"`
}

func CallAuthSetupStartupOneTime

func CallAuthSetupStartupOneTime(c *gin.Context) (rv RvAuthSetupStartupOneTime, err error)

CallAuthSetupStartupOneTime will call q_auth_v1_setup_startup_one_time in the database.

type RvAuthSipRegister

type RvAuthSipRegister struct {
	StdErrorReturn
	UserId           string `json:"user_id,omitempty"`
	EmailVerifyToken string `json:"email_verify_token,omitempty"`
	Require2Fa       string `json:"require_2fa,omitempty"`
	TmpToken         string `json:"tmp_token,omitempty"`
	Secret2Fa        string `json:"secret_2fa,omitempty"`
	N6               string `json:"n6,omitempty"`
}

func CallAuthSipRegister

func CallAuthSipRegister(c *gin.Context, email string, validator string, firstName string, lastName string, secret string, n6Flag string) (rv RvAuthSipRegister, err error)

CallAuthSipRegister will call q_auth_v1_sip_register in the database.

type RvAuthUploadedFiles

type RvAuthUploadedFiles struct {
	StdErrorReturn
}

func CallAuthUploadedFiles

func CallAuthUploadedFiles(c *gin.Context, id string, originalFileName string, contentType string, size string, fileHash string, groupId string, localFilePath string, imageConfirmed string, urlPath string, userId string) (rv RvAuthUploadedFiles, err error)

CallAuthUploadedFiles will call q_auth_v1_uploaded_files in the database.

type RvAuthValidUseToken

type RvAuthValidUseToken struct {
	StdErrorReturn
	UserId    string `json:"user_id,omitempty"`
	AuthToken string `json:"auth_token,omitempty"`
}

func CallAuthValidUseToken

func CallAuthValidUseToken(c *gin.Context, token string) (rv RvAuthValidUseToken, err error)

CallAuthValidUseToken will call q_auth_v1_valid_use_token in the database.

type RvAuthValidate2FaToken

type RvAuthValidate2FaToken struct {
	StdErrorReturn
	AuthToken      string `json:"auth_token,omitempty"`
	Expires        string `json:"expires,omitempty"`
	UserId         string `json:"user_id,omitempty"`
	Privileges     string `json:"privileges,omitempty"`
	Secret2Fa      string `json:"secret_2fa,omitempty"`
	EmailValidated string `json:"email_validated,omitempty"`
	X2faValidated  string `json:"x2fa_validated,omitempty"`
	AcctState      string `json:"acct_state,omitempty"`
	Login2FaRemain string `json:"login_2fa_remain,omitempty"`
}

func CallAuthValidate2FaToken

func CallAuthValidate2FaToken(c *gin.Context, email string, tmpToken string, x2faSecret string) (rv RvAuthValidate2FaToken, err error)

CallAuthValidate2FaToken will call q_auth_v1_validate_2fa_token in the database.

type RvAuthValidateFingerprintData

type RvAuthValidateFingerprintData struct {
	StdErrorReturn
}

func CallAuthValidateFingerprintData

func CallAuthValidateFingerprintData(c *gin.Context, fingerprintData string, state string, userId string) (rv RvAuthValidateFingerprintData, err error)

CallAuthValidateFingerprintData will call q_auth_v1_validate_fingerprint_data in the database.

type RvAuthValidateStartupPasswords

type RvAuthValidateStartupPasswords struct {
	StdErrorReturn
}

func CallAuthValidateStartupPasswords

func CallAuthValidateStartupPasswords(c *gin.Context) (rv RvAuthValidateStartupPasswords, err error)

CallAuthValidateStartupPasswords will call q_auth_v1_validate_startup_passwords in the database.

type RvAuthValidateXsrfId

type RvAuthValidateXsrfId struct {
	StdErrorReturn
}

func CallAuthValidateXsrfId

func CallAuthValidateXsrfId(c *gin.Context, id string) (rv RvAuthValidateXsrfId, err error)

CallAuthValidateXsrfId will call q_auth_v1_validate_xsrf_id in the database.

type RvAuthXsrfSetup

type RvAuthXsrfSetup struct {
	StdErrorReturn
}

func CallAuthXsrfSetup

func CallAuthXsrfSetup(c *gin.Context, id string, ref string) (rv RvAuthXsrfSetup, err error)

CallAuthXsrfSetup will call q_auth_v1_xsrf_setup in the database.

type RvCallErrorType

type RvCallErrorType struct {
	StdErrorReturn
}

type RvQAdminCreateClient

type RvQAdminCreateClient struct {
	StdErrorReturn
	ClientId          string `json:"client_id,omitempty"`
	RegistrationToken string `json:"registration_token,omitempty"`
}

func CallQAdminCreateClient

func CallQAdminCreateClient(c *gin.Context, clientName string, description string, roleName string, emailAddr string, userId string) (rv RvQAdminCreateClient, err error)

CallQAdminCreateClient will call q_admin_create_client in the database.

type RvQAdminCreateTokenRegistration

type RvQAdminCreateTokenRegistration struct {
	StdErrorReturn
	ClientId          string `json:"client_id,omitempty"`
	RegistrationToken string `json:"registration_token,omitempty"`
}

func CallQAdminCreateTokenRegistration

func CallQAdminCreateTokenRegistration(c *gin.Context, description string, clientId string, roleName string, emailNote string, userId string, adminEmail string, applicationUrl string) (rv RvQAdminCreateTokenRegistration, err error)

CallQAdminCreateTokenRegistration will call q_admin_create_token_registration in the database.

type RvQAdminGetRegistrationToken

type RvQAdminGetRegistrationToken struct {
	StdErrorReturn
	TokenRegistration string `json:"token_registration,omitempty"`
}

func CallQAdminGetRegistrationToken

func CallQAdminGetRegistrationToken(c *gin.Context, userId string) (rv RvQAdminGetRegistrationToken, err error)

CallQAdminGetRegistrationToken will call q_admin_get_registration_token in the database.

type RvQQrAdminHasPrivEmail

type RvQQrAdminHasPrivEmail struct {
	StdErrorReturn
}

func CallQQrAdminHasPrivEmail

func CallQQrAdminHasPrivEmail(c *gin.Context, email string, privNeeded string) (rv RvQQrAdminHasPrivEmail, err error)

CallQQrAdminHasPrivEmail will call q_qr_admin_HasPriv_email in the database.

type RvQQrAdminHasPrivUserId

type RvQQrAdminHasPrivUserId struct {
	StdErrorReturn
}

func CallQQrAdminHasPrivUserId

func CallQQrAdminHasPrivUserId(c *gin.Context, userId string, privNeeded string) (rv RvQQrAdminHasPrivUserId, err error)

CallQQrAdminHasPrivUserId will call q_qr_admin_HasPriv_user_id in the database.

type RvUTestProcCall

type RvUTestProcCall struct {
	StdErrorReturn
}

func CallUTestProcCall

func CallUTestProcCall(c *gin.Context, aaa string, userId string) (rv RvUTestProcCall, err error)

CallUTestProcCall will call u_test_proc_call in the database.

type SQLIntType

type SQLIntType struct {
	X *int
}

type SQLStringType

type SQLStringType struct {
	X string
}

type StdErrorReturn

type StdErrorReturn struct {
	Status   string `json:"status"`
	Msg      string `json:",omitempty"`
	Code     string `json:",omitempty"`
	Location string `json:",omitempty"`
	LogUUID  string `json:",omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL