services

package
v0.0.0-...-2c85299 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountService

type AccountService interface {
	RegisterAccount(userData *models.SignupModel) (*models.AccountModel, error)
	UpdateAccount(profile *models.AccountModel) (*models.AccountModel, error)
	ActiveAccount(id uint64) (bool, error)
	SigninAccount(signinData models.SigninModel) (string, error)
	Test(profile *models.SignupModel) string
}

func NewAccountService

func NewAccountService(repo repositories.AccountRepository) AccountService

NewAccountService register new Service

type AuthService

type AuthService interface {
}

type OTP

type OTP struct {
	Code   string        `json:"code"`
	Mobile string        `json:"mobile"`
	TTL    time.Duration `json:"ttl"`
}

type OtpService

type OtpService interface {
	SendOTP(string, time.Duration) bool
}

func NewOtpService

func NewOtpService(repo repositories.OtpRepository) OtpService

NewOtpService func

Jump to

Keyboard shortcuts

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