Documentation ¶
Index ¶
- func CreateToken(oid string) (string, error)
- func GetBucketName(path string) string
- func GetFileContentType(out multipart.File) (string, error)
- func GetFileName(path string) string
- func GetHashFunc(name string) (func(string) (string, error), error)
- func GetParentPath(path string) string
- func InitMailService()
- func InitUtilities()
- func ParseToken(authToken string, claims *UserClaims) (*jwt.Token, error)
- func SHA1(key string) (string, error)
- func SHA256(key string) (string, error)
- func SHA512(key string) (string, error)
- func SendMail(receiver string, receiverEmail string, subject string, content string) error
- func StandardizedPath(path string, isBucketFolder bool) string
- type UserClaims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func GetBucketName ¶
func GetFileName ¶
func GetParentPath ¶
func InitMailService ¶
func InitMailService()
func InitUtilities ¶
func InitUtilities()
func ParseToken ¶
func ParseToken(authToken string, claims *UserClaims) (*jwt.Token, error)
func StandardizedPath ¶
Types ¶
type UserClaims ¶
type UserClaims struct { Id string jwt.StandardClaims }
Click to show internal directories.
Click to hide internal directories.