Documentation ¶
Index ¶
- Variables
- func AddInstance(w http.ResponseWriter, r *http.Request)
- func AddRole(w http.ResponseWriter, r *http.Request)
- func AddUser(w http.ResponseWriter, r *http.Request)
- func AppInitialize()
- func BeforeAddUser(w http.ResponseWriter, r *http.Request)
- func ChangePassword(w http.ResponseWriter, r *http.Request)
- func CreateAccessToken(user model.User) string
- func CreateRefreshToken(user model.User) string
- func DeleteInstance(w http.ResponseWriter, r *http.Request)
- func DeleteRole(w http.ResponseWriter, r *http.Request)
- func DeleteUser(w http.ResponseWriter, r *http.Request)
- func EditInstance(w http.ResponseWriter, r *http.Request)
- func EditRole(w http.ResponseWriter, r *http.Request)
- func EditUser(w http.ResponseWriter, r *http.Request)
- func EditUserOnly(w http.ResponseWriter, r *http.Request)
- func ExtractToken(r *http.Request) (string, error)
- func FirebaseInit()
- func GetInstances(w http.ResponseWriter, r *http.Request)
- func GetOTPByEmail(w http.ResponseWriter, r *http.Request)
- func GetRoles(w http.ResponseWriter, r *http.Request)
- func GetUsers(w http.ResponseWriter, r *http.Request)
- func JwtMiddlewareValidateAccessToken(next http.Handler) http.Handler
- func JwtMiddlewareValidateRefreshToken(next http.Handler) http.Handler
- func Login(w http.ResponseWriter, r *http.Request)
- func ParseAccessToken(r *http.Request) (*model.AccessTokenCustomClaims, string)
- func ParseRefreshToken(r *http.Request) (*model.RefreshTokenCustomClaims, string)
- func RefreshJWT(w http.ResponseWriter, r *http.Request)
- func ResetPassword(w http.ResponseWriter, r *http.Request)
- func SendMultiNotification(deviceTokens []string, judul string, pesan string) error
- func SendNotification(deviceToken string, judul string, pesan string) error
- func VerifyAccessToken(tokenString string) (*jwt.Token, error)
- func VerifyCaptcha(w http.ResponseWriter, r *http.Request)
- func VerifyRefreshToken(tokenString string) (*jwt.Token, error)
- func ViewInstance(w http.ResponseWriter, r *http.Request)
- func ViewUser(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
View Source
var FCMClient *messaging.Client
Functions ¶
func AddInstance ¶
func AddInstance(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 CreateRefreshToken ¶
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 EditUserOnly ¶
func EditUserOnly(w http.ResponseWriter, r *http.Request)
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 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 VerifyAccessToken ¶
func VerifyCaptcha ¶
func VerifyCaptcha(w http.ResponseWriter, r *http.Request)
func VerifyRefreshToken ¶
func ViewInstance ¶
func ViewInstance(w http.ResponseWriter, r *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.