services

package
v0.0.0-...-e75809f Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: GPL-3.0 Imports: 24 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptPassword

func EncryptPassword(password string) []byte

EncryptPassword ...

Types

type AuthenticationService

type AuthenticationService struct {
	DB *gorm.DB
}

AuthenticationService ...

func (AuthenticationService) AuthenticateSession

func (service AuthenticationService) AuthenticateSession(c *gin.Context) (int, error)

AuthenticateSession ...

func (AuthenticationService) Authorize

func (service AuthenticationService) Authorize(c *gin.Context) (
	userResponse *userSerializers.UserAuthSerializer,
	status int,
	err error)

Authorize ...

func (AuthenticationService) BasicLogin

func (service AuthenticationService) BasicLogin(c *gin.Context) (
	userResponse *userSerializers.UserAuthSerializer,
	status int,
	err error)

BasicLogin ...

func (AuthenticationService) Identify

func (service AuthenticationService) Identify(c *gin.Context) (
	reSendTime int,
	status int,
	err error)

Identify ...

func (AuthenticationService) Login

func (service AuthenticationService) Login(c *gin.Context) map[string]string

Login ...

func (AuthenticationService) Logout

func (service AuthenticationService) Logout(c *gin.Context) int

Logout ...

func (AuthenticationService) Recover

func (service AuthenticationService) Recover(recoveryData userSerializers.Recover) (
	status int,
	err error)

Recover ...

func (AuthenticationService) UpdatePassword

func (service AuthenticationService) UpdatePassword(userPasswordData userSerializers.Recover) (
	status int,
	err error)

UpdatePassword ...

type TeamService

type TeamService struct {
	DB *gorm.DB
}

TeamService ...

func (TeamService) MemberList

func (service TeamService) MemberList(teamID string, userID uint, onlyActive bool, isAdmin bool) (
	members *userSerializers.MembersSerializer, status int, err error)

MemberList ...

func (TeamService) UserTeamList

func (service TeamService) UserTeamList(userID uint, onlyActive bool) (teams *userSerializers.TeamsSerializer, status int, err error)

UserTeamList ...

Jump to

Keyboard shortcuts

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