controller

package
v0.0.0-...-19c3b9a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FCMClient *messaging.Client

Functions

func AddInstance

func AddInstance(w http.ResponseWriter, r *http.Request)

func AddRole

func AddRole(w http.ResponseWriter, r *http.Request)

func AddUser

func AddUser(w http.ResponseWriter, r *http.Request)

func AppInitialize

func AppInitialize()

func BeforeAddUser

func BeforeAddUser(w http.ResponseWriter, r *http.Request)

func ChangePassword

func ChangePassword(w http.ResponseWriter, r *http.Request)

func CreateAccessToken

func CreateAccessToken(user model.User) string

func CreateRefreshToken

func CreateRefreshToken(user model.User) string

func DeleteInstance

func DeleteInstance(w http.ResponseWriter, r *http.Request)

func DeleteRole

func DeleteRole(w http.ResponseWriter, r *http.Request)

func DeleteUser

func DeleteUser(w http.ResponseWriter, r *http.Request)

func EditInstance

func EditInstance(w http.ResponseWriter, r *http.Request)

func EditRole

func EditRole(w http.ResponseWriter, r *http.Request)

func EditUser

func EditUser(w http.ResponseWriter, r *http.Request)

func EditUserOnly

func EditUserOnly(w http.ResponseWriter, r *http.Request)

func ExtractToken

func ExtractToken(r *http.Request) (string, error)

func FirebaseInit

func FirebaseInit()

func GetInstances

func GetInstances(w http.ResponseWriter, r *http.Request)

func GetOTPByEmail

func GetOTPByEmail(w http.ResponseWriter, r *http.Request)

func GetRoles

func GetRoles(w http.ResponseWriter, r *http.Request)

func GetUsers

func GetUsers(w http.ResponseWriter, r *http.Request)

func JwtMiddlewareValidateAccessToken

func JwtMiddlewareValidateAccessToken(next http.Handler) http.Handler

func JwtMiddlewareValidateRefreshToken

func JwtMiddlewareValidateRefreshToken(next http.Handler) http.Handler

func Login

func Login(w http.ResponseWriter, r *http.Request)

func ParseAccessToken

func ParseAccessToken(r *http.Request) (*model.AccessTokenCustomClaims, string)

func ParseRefreshToken

func ParseRefreshToken(r *http.Request) (*model.RefreshTokenCustomClaims, string)

func RefreshJWT

func RefreshJWT(w http.ResponseWriter, r *http.Request)

func ResetPassword

func ResetPassword(w http.ResponseWriter, r *http.Request)

func SendMultiNotification

func SendMultiNotification(deviceTokens []string, judul string, pesan string) error

func SendNotification

func SendNotification(deviceToken string, judul string, pesan string) error

func VerifyAccessToken

func VerifyAccessToken(tokenString string) (*jwt.Token, error)

func VerifyCaptcha

func VerifyCaptcha(w http.ResponseWriter, r *http.Request)

func VerifyRefreshToken

func VerifyRefreshToken(tokenString string) (*jwt.Token, error)

func ViewInstance

func ViewInstance(w http.ResponseWriter, r *http.Request)

func ViewUser

func ViewUser(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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