pendaftaran

package module
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 12 Imported by: 0

README

pendaftaran

Package pendaftaran PMB

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckUserExists added in v0.1.0

func CheckUserExists(conn *gorm.DB, ctx context.Context, email string, nohp string) (user pmbulbi.Pendaftaran, err error)

func CreateMariaGormConnection

func CreateMariaGormConnection(Mariastring string) *gorm.DB

func CreatePostgresConnection added in v0.5.9

func CreatePostgresConnection(postgresstring string) *gorm.DB

func Decrypt added in v0.0.4

func Decrypt(enc string, key string) (res string)

func Encrypt added in v0.0.4

func Encrypt(plaintext string, key string) (res string)

func GenerateRandomPassword added in v0.0.3

func GenerateRandomPassword(length int) string

func GetKotaLimits added in v0.0.9

func GetKotaLimits(conn *gorm.DB, ctx context.Context, page, perPage int) (val []pmbulbi.WilayahKota, err error)

func InsertDataPendaftar

func InsertDataPendaftar(conn *gorm.DB, ctx context.Context, val pmbulbi.Pendaftaran) (err error)

func Login added in v0.1.0

func Login(ctx context.Context, Mariaconn *gorm.DB, secret string, val pmbulbi.RequestLogin) (err error)

func Pendaftaran

func Pendaftaran(ctx context.Context, Mariaconn *gorm.DB, secret string, val pmbulbi.Pendaftaran) (err error)

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 TableMigrator(maria string, model interface{}) (res string, err error)

func TableMigratorPostgres added in v0.5.9

func TableMigratorPostgres(pstgrs string, model ...interface{}) (res string, err error)

func VerifyPassword added in v0.1.0

func VerifyPassword(user pmbulbi.Pendaftaran, secret string, val pmbulbi.RequestLogin) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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