goutils

package module
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

README

goutils

golang utility will be here

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTTPRouter

func GetHTTPRouter(mode string) *gin.Engine

func Get_UserId_Permissions

func Get_UserId_Permissions(ctx *gin.Context) (int64, []string, error)

func IsEmail

func IsEmail(s string) bool

func IsMobile

func IsMobile(s string) bool

func IsPermited

func IsPermited(userPerms []string, permsNeeded map[string]bool) bool

returns true if any string from permsNeeded exists in userPerms

func OptionRequestMiddleware

func OptionRequestMiddleware(c *gin.Context)

func RequestIDMiddleware

func RequestIDMiddleware(c *gin.Context)

func RequestTimeMiddleware

func RequestTimeMiddleware(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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