Documentation
¶
Index ¶
- Variables
- type InviteRepo
- func (i *InviteRepo) Create(invite *domain.Invite) (uint, error)
- func (i *InviteRepo) Delete(ID uint) error
- func (i *InviteRepo) DeleteAllByMeetingID(meetingID string) error
- func (i *InviteRepo) GetAllByInvitee(inviteeID uint) ([]*domain.Invite, error)
- func (i *InviteRepo) GetAllByInviter(inviterID uint) ([]*domain.Invite, error)
- func (i *InviteRepo) GetByID(ID uint) (*domain.Invite, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ProviderSet provides a MeetingPlatformRepo for use in production. ProviderSet = wire.NewSet(Provide, wire.Bind(new(domain.InviteRepository), new(*InviteRepo))) )
Functions ¶
This section is empty.
Types ¶
type InviteRepo ¶
func Provide ¶
func Provide(manager *database.Manager) *InviteRepo
Provide returns an InviteRepo configured with the provided Manager.
func (*InviteRepo) Create ¶
func (i *InviteRepo) Create(invite *domain.Invite) (uint, error)
Create creates a new Invite record in the database.
func (*InviteRepo) Delete ¶
func (i *InviteRepo) Delete(ID uint) error
Delete deletes the Invite from the database with the provided ID.
func (*InviteRepo) DeleteAllByMeetingID ¶
func (i *InviteRepo) DeleteAllByMeetingID(meetingID string) error
DeleteAllByMeetingID deletes all Invites from the database that contain the provided meetingID.
func (*InviteRepo) GetAllByInvitee ¶
func (i *InviteRepo) GetAllByInvitee(inviteeID uint) ([]*domain.Invite, error)
GetAllByInvitee retrieves all Invites from the database that match the provided inviteeID.
func (*InviteRepo) GetAllByInviter ¶
func (i *InviteRepo) GetAllByInviter(inviterID uint) ([]*domain.Invite, error)
GetAllByInviter retrieves all Invites from the database the match the provided inviterID.
Click to show internal directories.
Click to hide internal directories.