Documentation ¶
Index ¶
- Variables
- func NewS3(bucketName string) *attachment
- type Attachment
- type Auth
- type BasicInfo
- type Chat
- type Conversation
- func (c *Conversation) CreateConversation(matchId string) (string, error)
- func (c *Conversation) DeleteConversationById(convoId string) error
- func (c *Conversation) FindConversationById(matchId string) (convEntity.DTO, error)
- func (c *Conversation) GetConversationByUserId(userId string) ([]convEntity.DTO, error)
- func (c *Conversation) UpdateConvDay(convoId string) error
- func (c *Conversation) UpdateConvRow(convoId string) error
- type EventDeps
- func (d *EventDeps) HandleCreateChatEvent(payload event.ChatCreatedPayload)
- func (d *EventDeps) HandleProfileUpdateEvent(payload event.ProfileUpdatedPayload)
- func (d *EventDeps) HandleRevealUpdateEvent(payload event.MatchRevealedPayload)
- func (d *EventDeps) HandleSeenAtevent(payload event.ChatSeenPayload)
- type Interest
- func (i *Interest) CreateNewBio(intr *interestEntity.BioDTO) error
- func (i *Interest) CreateNewHobbies(interestId string, hobbies []string) ([]interestEntity.HobbieDTO, error)
- func (i *Interest) CreateNewMovieSeries(interestId string, movieSeries []string) ([]interestEntity.MovieSerieDTO, error)
- func (i *Interest) CreateNewSports(interestId string, sports []string) ([]interestEntity.SportDTO, error)
- func (i *Interest) CreateNewTraveling(interestId string, travels []string) ([]interestEntity.TravelDTO, error)
- func (i *Interest) DeleteHobbies(interestId string, ids []string) ([]string, error)
- func (i *Interest) DeleteMovieSeries(interestId string, ids []string) ([]string, error)
- func (i *Interest) DeleteSports(interestId string, ids []string) ([]string, error)
- func (i *Interest) DeleteTravels(interestId string, ids []string) ([]string, error)
- func (i *Interest) GetBio(userId string) (interestEntity.BioDTO, error)
- func (i *Interest) GetInterest(userId string) (interestEntity.FullDTO, error)
- func (i *Interest) PutBio(bio interestEntity.BioDTO) error
- func (i *Interest) PutHobbies(interestId string, hobbies []interestEntity.HobbieDTO) error
- func (i *Interest) PutMovieSeries(interestId string, movieSeries []interestEntity.MovieSerieDTO) error
- func (i *Interest) PutSports(interestId string, sports []interestEntity.SportDTO) error
- func (i *Interest) PutTraveling(interestId string, travels []interestEntity.TravelDTO) error
- type Jwt
- type Location
- type Match
- func (m *Match) FindUserToMatch(userId string) ([]matchEntity.UserDTO, error)
- func (m *Match) GetMatchById(matchId string) (matchEntity.MatchDAO, error)
- func (m *Match) GetMatchReqToUserId(userId string) ([]matchEntity.FullUserDTO, error)
- func (m *Match) PostNewMatch(fromUserId, toUserId string, matchStatus matchEntity.Status) (string, error)
- func (m *Match) RequestChange(matchId string, matchStatus matchEntity.Status) error
- func (m *Match) RevealChange(matchId string, matchStatus matchEntity.Status) error
- type Online
- type User
- func (u *User) CreateNewProfilePic(profPicParam userEntity.ProfilePic) (string, error)
- func (u *User) CreateUser(newUser userEntity.Register) (string, error)
- func (u *User) GetUserById(id string) (userEntity.FullDTO, error)
- func (u *User) GetUserByIdWithSelectedProfPic(id string) (userEntity.FullDTO, error)
- func (u *User) UpdateUser(userId string, updateUser userEntity.Update) error
- type Ws
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRefMatchId = fmt.Errorf("%w:invalid matchId", common.ErrRefNotFound23503) ErrInvalidMatchStatus = errors.New("not yet accepted/revealed in matchId") )
Functions ¶
Types ¶
type Attachment ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func NewAuth ¶
func NewAuth(authR authentication.Repository, userR user.Repository, tokenSvc *Jwt) *Auth
type BasicInfo ¶
type BasicInfo struct {
// contains filtered or unexported fields
}
func NewBasicInfo ¶
func NewBasicInfo(bInfoRepo basicinfo.Repository) *BasicInfo
func (*BasicInfo) CreateBasicInfo ¶
func (b *BasicInfo) CreateBasicInfo(bInfo basicInfoEntity.DTO) error
func (*BasicInfo) GetBasicInfoByUserId ¶
func (b *BasicInfo) GetBasicInfoByUserId(id string) (basicInfoEntity.DTO, error)
func (*BasicInfo) UpdateBasicInfo ¶
func (b *BasicInfo) UpdateBasicInfo(userId string, newBasicInfo basicInfoEntity.Update) error
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
func NewChat ¶
func NewChat(chatRepo chat.Repository, matchRepo match.Repository) *Chat
func (*Chat) CreateNewChat ¶
func (c *Chat) CreateNewChat(content *chatEntity.DTO) error
func (*Chat) DeleteMessagesById ¶
func (*Chat) GetMessages ¶
func (*Chat) UpdateSeenChat ¶
type Conversation ¶
type Conversation struct {
// contains filtered or unexported fields
}
func NewConversation ¶
func NewConversation(convRepo conversation.Repository, matchRepo match.Repository) *Conversation
func (*Conversation) CreateConversation ¶
func (c *Conversation) CreateConversation(matchId string) (string, error)
func (*Conversation) DeleteConversationById ¶
func (c *Conversation) DeleteConversationById(convoId string) error
func (*Conversation) FindConversationById ¶
func (c *Conversation) FindConversationById(matchId string) (convEntity.DTO, error)
func (*Conversation) GetConversationByUserId ¶
func (c *Conversation) GetConversationByUserId(userId string) ([]convEntity.DTO, error)
func (*Conversation) UpdateConvDay ¶
func (c *Conversation) UpdateConvDay(convoId string) error
func (*Conversation) UpdateConvRow ¶
func (c *Conversation) UpdateConvRow(convoId string) error
type EventDeps ¶
type EventDeps struct { UserSvc *User ConvSvc *Conversation MatchSvc *Match Online *Online Ws *Ws }
func (*EventDeps) HandleCreateChatEvent ¶
func (d *EventDeps) HandleCreateChatEvent(payload event.ChatCreatedPayload)
func (*EventDeps) HandleProfileUpdateEvent ¶
func (d *EventDeps) HandleProfileUpdateEvent(payload event.ProfileUpdatedPayload)
func (*EventDeps) HandleRevealUpdateEvent ¶
func (d *EventDeps) HandleRevealUpdateEvent(payload event.MatchRevealedPayload)
func (*EventDeps) HandleSeenAtevent ¶
func (d *EventDeps) HandleSeenAtevent(payload event.ChatSeenPayload)
type Interest ¶
type Interest struct {
// contains filtered or unexported fields
}
func NewInterest ¶
func NewInterest(intrRepo interest.Repository) *Interest
func (*Interest) CreateNewBio ¶
func (i *Interest) CreateNewBio(intr *interestEntity.BioDTO) error
func (*Interest) CreateNewHobbies ¶
func (*Interest) CreateNewMovieSeries ¶
func (i *Interest) CreateNewMovieSeries(interestId string, movieSeries []string) ([]interestEntity.MovieSerieDTO, error)
func (*Interest) CreateNewSports ¶
func (*Interest) CreateNewTraveling ¶
func (*Interest) DeleteHobbies ¶
func (*Interest) DeleteMovieSeries ¶
func (*Interest) DeleteSports ¶
func (*Interest) DeleteTravels ¶
func (*Interest) GetInterest ¶
func (i *Interest) GetInterest(userId string) (interestEntity.FullDTO, error)
func (*Interest) PutHobbies ¶
func (i *Interest) PutHobbies(interestId string, hobbies []interestEntity.HobbieDTO) error
func (*Interest) PutMovieSeries ¶
func (i *Interest) PutMovieSeries(interestId string, movieSeries []interestEntity.MovieSerieDTO) error
func (*Interest) PutSports ¶
func (i *Interest) PutSports(interestId string, sports []interestEntity.SportDTO) error
func (*Interest) PutTraveling ¶
func (i *Interest) PutTraveling(interestId string, travels []interestEntity.TravelDTO) error
type Location ¶
type Location struct {
// contains filtered or unexported fields
}
func NewLocation ¶
func NewLocation(locationRepo location.Repository) *Location
func (*Location) CreateNewLocation ¶
func (l *Location) CreateNewLocation(location *locationEntity.DTO) error
func (*Location) GetLocation ¶
func (l *Location) GetLocation(id string) (locationEntity.DTO, error)
type Match ¶
type Match struct {
// contains filtered or unexported fields
}
func NewMatch ¶
func NewMatch(matchRepo match.Repository, locationRepo location.Repository) *Match
func (*Match) FindUserToMatch ¶
func (m *Match) FindUserToMatch(userId string) ([]matchEntity.UserDTO, error)
func (*Match) GetMatchById ¶
func (m *Match) GetMatchById(matchId string) (matchEntity.MatchDAO, error)
func (*Match) GetMatchReqToUserId ¶
func (m *Match) GetMatchReqToUserId(userId string) ([]matchEntity.FullUserDTO, error)
func (*Match) PostNewMatch ¶
func (*Match) RequestChange ¶
func (m *Match) RequestChange(matchId string, matchStatus matchEntity.Status) error
func (*Match) RevealChange ¶
func (m *Match) RevealChange(matchId string, matchStatus matchEntity.Status) error
type Online ¶
type Online struct {
// contains filtered or unexported fields
}
func NewOnline ¶
func NewOnline(onlineRepo online.Repository) *Online
func (*Online) CreateNewOnline ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
func NewUser ¶
func NewUser(userRepo user.Repository) *User
func (*User) CreateNewProfilePic ¶
func (u *User) CreateNewProfilePic(profPicParam userEntity.ProfilePic) (string, error)
func (*User) CreateUser ¶
func (u *User) CreateUser(newUser userEntity.Register) (string, error)
func (*User) GetUserById ¶
func (u *User) GetUserById(id string) (userEntity.FullDTO, error)
func (*User) GetUserByIdWithSelectedProfPic ¶
func (u *User) GetUserByIdWithSelectedProfPic(id string) (userEntity.FullDTO, error)
func (*User) UpdateUser ¶
func (u *User) UpdateUser(userId string, updateUser userEntity.Update) error
type Ws ¶
type Ws struct { Clients *rwmap.RwMap[websocketEntity.Conn, string] ReverseClient *rwmap.RwMap[string, websocketEntity.Conn] WsChan chan websocketEntity.Payload }
func (*Ws) ListenForWsPayload ¶
func (ws *Ws) ListenForWsPayload(conn *websocketEntity.Conn)
func (*Ws) PingTicker ¶
func (ws *Ws) PingTicker(conn *websocketEntity.Conn)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.