controller

package
v0.0.0-...-9ca138e Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthVerifiedUser

func AuthVerifiedUser(database *gorm.DB, info structures.AuthInfo) (*db.Session, error)

func LogIn

func LogIn(database *gorm.DB, info structures.LoginInfo, emailConfig EmailConfiguration) (uuid.UUID, error)

func ValidateSession

func ValidateSession(database *gorm.DB, sessionID uuid.UUID) uuid.UUID

func VerifyRegistration

func VerifyRegistration(database *gorm.DB, registerID uuid.UUID) error

Types

type EmailConfiguration

type EmailConfiguration interface {
	GetGmailLogin() string

	GetGmailPassword() string

	GetDomain() string

	GetGmailFrom() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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