ultis

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(oid string) (string, error)

func GetBucketName

func GetBucketName(path string) string

func GetFileContentType

func GetFileContentType(out multipart.File) (string, error)

func GetFileName

func GetFileName(path string) string

func GetHashFunc

func GetHashFunc(name string) (func(string) (string, error), error)

func GetParentPath

func GetParentPath(path string) string

func InitMailService

func InitMailService()

func InitUtilities

func InitUtilities()

func ParseToken

func ParseToken(authToken string, claims *UserClaims) (*jwt.Token, error)

func SHA1

func SHA1(key string) (string, error)

func SHA256

func SHA256(key string) (string, error)

func SHA512

func SHA512(key string) (string, error)

func SendMail

func SendMail(receiver string, receiverEmail string, subject string, content string) error

func StandardizedPath

func StandardizedPath(path string, isBucketFolder bool) string

Types

type UserClaims

type UserClaims struct {
	Id string
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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