Documentation ¶
Index ¶
- Variables
- type InviterSameAsInviteeErr
- type SimpleInviteService
- func (s *SimpleInviteService) DeleteAllInvitesByMeetingID(meetingID string) error
- func (s *SimpleInviteService) DeleteInvite(inviteID uint) error
- func (s *SimpleInviteService) GetAllReceivedInvites(userID uint) ([]*domain.Invite, error)
- func (s *SimpleInviteService) GetAllSentInvites(userID uint) ([]*domain.Invite, error)
- func (s *SimpleInviteService) GetInvite(inviteID uint) (*domain.Invite, error)
- func (s *SimpleInviteService) SendInvite(invite *domain.InviteRequest) (uint, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ProviderProductionSet provides a new SimpleInviteService for use in production. ProviderProductionSet = wire.NewSet(Provide, wire.Bind(new(domain.InviteService), new(*SimpleInviteService))) )
Functions ¶
This section is empty.
Types ¶
type InviterSameAsInviteeErr ¶
type InviterSameAsInviteeErr struct{}
func NewInviterSameAsInviteeErr ¶
func NewInviterSameAsInviteeErr() InviterSameAsInviteeErr
func (InviterSameAsInviteeErr) Error ¶
func (i InviterSameAsInviteeErr) Error() string
type SimpleInviteService ¶
type SimpleInviteService struct {
// contains filtered or unexported fields
}
SimpoleInviteService manages operations on Invites.
func Provide ¶
func Provide(inviteRepo domain.InviteRepository, meetingService domain.MeetingPlatformService, oauthService domain.OAuthInfoService, userService domain.UserService) *SimpleInviteService
Provide returns a SimpleInviteService configured with the provided InviteRepository, MeetingPlatformService, and OAuthInfoService.
func (*SimpleInviteService) DeleteAllInvitesByMeetingID ¶
func (s *SimpleInviteService) DeleteAllInvitesByMeetingID(meetingID string) error
DeleteAllInvitesByMeetingID deletes all Invites which contain the provided meetingID.
func (*SimpleInviteService) DeleteInvite ¶
func (s *SimpleInviteService) DeleteInvite(inviteID uint) error
DeleteInvite deletes the Invite with the provided ID.
func (*SimpleInviteService) GetAllReceivedInvites ¶
func (s *SimpleInviteService) GetAllReceivedInvites(userID uint) ([]*domain.Invite, error)
GetAllReceivedInvites returns all Invites that have been received by the provided userID.
func (*SimpleInviteService) GetAllSentInvites ¶
func (s *SimpleInviteService) GetAllSentInvites(userID uint) ([]*domain.Invite, error)
GetAllSentInvites returns all Invites that have been sent by the provided userID.
func (*SimpleInviteService) GetInvite ¶
func (s *SimpleInviteService) GetInvite(inviteID uint) (*domain.Invite, error)
GetInvite returns the Invite with the provided ID.
func (*SimpleInviteService) SendInvite ¶
func (s *SimpleInviteService) SendInvite(invite *domain.InviteRequest) (uint, error)
SendInvite sends an Invite to another user based on the information contained in the InviteRequest.
Click to show internal directories.
Click to hide internal directories.