secretkeyservice

package
v0.0.0-...-b01238c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretKeyAlreadyCreatedError

type SecretKeyAlreadyCreatedError struct {
	Message     string
	PhoneNumber string
}

func NewSecretKeyAlreadyCreatedError

func NewSecretKeyAlreadyCreatedError(phoneNumber string) *SecretKeyAlreadyCreatedError

func (*SecretKeyAlreadyCreatedError) Error

type SecretKeyService

type SecretKeyService struct {
	EnvConfig         config.EnvironmentConfig
	FriendsRepository *friendsrepository.FriendsRepository
}

func New

func New(
	envConfig config.EnvironmentConfig,
	friendsRepository *friendsrepository.FriendsRepository,
) *SecretKeyService

func (*SecretKeyService) GenerateSecretKey

func (sks *SecretKeyService) GenerateSecretKey(phoneNumber string) (string, error)

Jump to

Keyboard shortcuts

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