profile

package
v0.0.0-...-8717a1f Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProfileService

type ProfileService struct {
	mock.Mock
}

func (ProfileService) ActivateTFA

func (m ProfileService) ActivateTFA(user userland.User, secret string, code string) ([]string, error)

func (ProfileService) ChangeEmail

func (m ProfileService) ChangeEmail(user userland.User, verificationID string) error

func (ProfileService) ChangePassword

func (m ProfileService) ChangePassword(user userland.User, oldPassword, newPassword string) error

func (ProfileService) DeleteAccount

func (m ProfileService) DeleteAccount(user userland.User, currPassword string) error

func (ProfileService) EnrollTFA

func (m ProfileService) EnrollTFA(user userland.User) (secret string, qrcodeImageBase64 string, err error)

func (ProfileService) ListEvents

func (m ProfileService) ListEvents(user userland.User, pagingOptions userland.EventPagingOptions) (userland.Events, int, error)

func (ProfileService) Profile

func (m ProfileService) Profile(userID int) (userland.User, error)

func (ProfileService) ProfileByEmail

func (m ProfileService) ProfileByEmail(email string) (userland.User, error)

func (ProfileService) RemoveTFA

func (m ProfileService) RemoveTFA(user userland.User, currPassword string) error

func (ProfileService) RequestChangeEmail

func (m ProfileService) RequestChangeEmail(user userland.User, newEmail string) (verificationID string, err error)

func (ProfileService) SetProfile

func (m ProfileService) SetProfile(user userland.User) error

func (ProfileService) SetProfilePicture

func (m ProfileService) SetProfilePicture(user userland.User, image io.Reader) error

type SimpleProfileService

type SimpleProfileService struct {
	CalledMethods map[string]bool
}

func (SimpleProfileService) ActivateTFA

func (m SimpleProfileService) ActivateTFA(user userland.User, secret string, code string) ([]string, error)

func (SimpleProfileService) ChangeEmail

func (m SimpleProfileService) ChangeEmail(user userland.User, verificationID string) error

func (SimpleProfileService) ChangePassword

func (m SimpleProfileService) ChangePassword(user userland.User, oldPassword, newPassword string) error

func (SimpleProfileService) DeleteAccount

func (m SimpleProfileService) DeleteAccount(user userland.User, currPassword string) error

func (SimpleProfileService) EnrollTFA

func (m SimpleProfileService) EnrollTFA(user userland.User) (secret string, qrcodeImageBase64 string, err error)

func (SimpleProfileService) ListEvents

func (m SimpleProfileService) ListEvents(user userland.User, pagingOptions userland.EventPagingOptions) (userland.Events, int, error)

func (SimpleProfileService) Profile

func (m SimpleProfileService) Profile(userID int) (userland.User, error)

func (SimpleProfileService) ProfileByEmail

func (m SimpleProfileService) ProfileByEmail(email string) (userland.User, error)

func (SimpleProfileService) RemoveTFA

func (m SimpleProfileService) RemoveTFA(user userland.User, currPassword string) error

func (SimpleProfileService) RequestChangeEmail

func (m SimpleProfileService) RequestChangeEmail(user userland.User, newEmail string) (verificationID string, err error)

func (SimpleProfileService) SetProfile

func (m SimpleProfileService) SetProfile(user userland.User) error

func (SimpleProfileService) SetProfilePicture

func (m SimpleProfileService) SetProfilePicture(user userland.User, image io.Reader) error

Jump to

Keyboard shortcuts

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