account

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
}

func (*Account) NewLoginFromReadCloser

func (a *Account) NewLoginFromReadCloser(body io.ReadCloser) (loginData *dto.LoginData, err error)

func (*Account) ValidateEmail

func (a *Account) ValidateEmail(email string) error

func (*Account) ValidateResetPasswordCode

func (a *Account) ValidateResetPasswordCode(validCode []byte, informedCode string) error

type IAccount

type IAccount interface {
	NewLoginFromReadCloser(body io.ReadCloser) (loginData *dto.LoginData, err error)
	ValidateResetPasswordCode(validCode []byte, informedCode string) error
	ValidateEmail(email string) error
}

func NewAccountUseCases

func NewAccountUseCases() IAccount

Jump to

Keyboard shortcuts

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