Documentation ¶
Index ¶
- type FriendsRepository
- func (fr *FriendsRepository) GetFriendsList() ([]entities.Friend, error)
- func (fr *FriendsRepository) GetSecretFriend(phoneNumber, secretKey string) (secretFriend entities.Friend, err error)
- func (fr *FriendsRepository) SaveDrawIndividualResult(phoneNumber string, picked entities.Friend) error
- func (fr *FriendsRepository) SaveFriendsList(friendsList []entities.Friend) error
- func (fr *FriendsRepository) SaveSecretKey(phoneNumber, secretKey string) error
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 New(envConfig config.EnvironmentConfig) *FriendsRepository
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
Click to show internal directories.
Click to hide internal directories.