Documentation ¶
Index ¶
- func CheckUserExists(conn *gorm.DB, ctx context.Context, email string, nohp string) (user pmbulbi.Pendaftaran, err error)
- func CreateMariaGormConnection(Mariastring string) *gorm.DB
- func CreatePostgresConnection(postgresstring string) *gorm.DB
- func Decrypt(enc string, key string) (res string)
- func Encrypt(plaintext string, key string) (res string)
- func GenerateRandomPassword(length int) string
- func GetKotaLimits(conn *gorm.DB, ctx context.Context, page, perPage int) (val []pmbulbi.WilayahKota, err error)
- func InsertDataPendaftar(conn *gorm.DB, ctx context.Context, val pmbulbi.Pendaftaran) (err error)
- func Login(ctx context.Context, Mariaconn *gorm.DB, secret string, ...) (err error)
- func Pendaftaran(ctx context.Context, Mariaconn *gorm.DB, secret string, ...) (err error)
- func PendaftaranDecrypt(ctx context.Context, Mariaconn *gorm.DB, secret string, ...) (dest pmbulbi.Pendaftaran, err error)
- func TableMigrator(maria string, model interface{}) (res string, err error)
- func TableMigratorPostgres(pstgrs string, model ...interface{}) (res string, err error)
- func VerifyPassword(user pmbulbi.Pendaftaran, secret string, val pmbulbi.RequestLogin) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckUserExists ¶ added in v0.1.0
func CreatePostgresConnection ¶ added in v0.5.9
func GenerateRandomPassword ¶ added in v0.0.3
func GetKotaLimits ¶ added in v0.0.9
func InsertDataPendaftar ¶
func Pendaftaran ¶
func PendaftaranDecrypt ¶ added in v0.3.1
func PendaftaranDecrypt(ctx context.Context, Mariaconn *gorm.DB, secret string, val pmbulbi.Pendaftaran) (dest pmbulbi.Pendaftaran, err error)
func TableMigrator ¶
func TableMigratorPostgres ¶ added in v0.5.9
func VerifyPassword ¶ added in v0.1.0
func VerifyPassword(user pmbulbi.Pendaftaran, secret string, val pmbulbi.RequestLogin) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.