friendsrepository

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FriendsRepository

type FriendsRepository struct {
	EnvConfig config.EnvironmentConfig
}

func New

func (*FriendsRepository) GetFriendsList

func (fr *FriendsRepository) GetFriendsList() ([]entities.Friend, error)

func (*FriendsRepository) GetSecretFriend

func (fr *FriendsRepository) GetSecretFriend(phoneNumber, secretKey string) (secretFriend entities.Friend, err error)

func (*FriendsRepository) SaveDrawIndividualResult

func (fr *FriendsRepository) SaveDrawIndividualResult(phoneNumber string, picked entities.Friend) error

func (*FriendsRepository) SaveFriendsList

func (fr *FriendsRepository) SaveFriendsList(friendsList []entities.Friend) error

func (*FriendsRepository) SaveSecretKey

func (fr *FriendsRepository) SaveSecretKey(phoneNumber, secretKey string) error

Jump to

Keyboard shortcuts

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