simpleinviteservice

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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