services

package
v0.0.0-...-c45a62f Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2020 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallMailerService

func CallMailerService()

func ConvertStringToInt

func ConvertStringToInt(routeParam string) uint64

func CreateToken

func CreateToken(userId uint64, userAdmin bool) (string, error)

func CreateTokenExpireDate

func CreateTokenExpireDate() (time.Duration, error)

func ExtractToken

func ExtractToken(c *gin.Context) string

func SendMail

func SendMail(author string, password string, to string, subject string, body string)

func TokenValid

func TokenValid(c *gin.Context) error

func VerifyToken

func VerifyToken(c *gin.Context) (*jwt.Token, error)

Types

type Config

type Config struct {
	PROVIDER_KEY    string `env:"PROVIDER_KEY"`
	PROVIDER_SECRET string `env:"PROVIDER_SECRET"`
}

Directories

Path Synopsis
rabbitmq

Jump to

Keyboard shortcuts

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