inviterepo

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: 9 Imported by: 0

Documentation

Index

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

type InviteRepo struct {
	DB *gorm.DB
}

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.

func (*InviteRepo) GetByID

func (i *InviteRepo) GetByID(ID uint) (*domain.Invite, error)

GetByID retrieves an Invite from the database by the provided ID.

Jump to

Keyboard shortcuts

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