util

package
v0.0.0-...-88cf978 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOwner

func CheckOwner(uid uint, oid uint) error

CheckOwner checks if the given user is owner of organization

func CreateSlug

func CreateSlug(s string) string

CreateSlug return slug

func GetApplicationID

func GetApplicationID(url url.URL, uID uint) (uint, error)

GetApplicationID fetches application ID from URL

func GormRequestID

func GormRequestID(h http.Handler) http.Handler

GormRequestID returns middleware to add request_id in gorm context

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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