meetinghandler

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MeetingHandler

type MeetingHandler struct {
	AuthMiddleware  *authmiddleware.AuthMiddleware
	PlatformService *domain.MeetingPlatformService
	OAuthService    *domain.OAuthInfoService
	InviteService   *domain.InviteService
}

MeetingHandler is the handler that manages operations on Meetings for the API.

func Provide

func Provide(authMiddleware *authmiddleware.AuthMiddleware, meetingProviderService domain.MeetingPlatformService, oauthService domain.OAuthInfoService, inviteService domain.InviteService) *MeetingHandler

Provide returns a MeetingHandler configured with the provided AuthMiddleware, MeetingPlatformService, OAuthInfoService, and InviteService.

func (*MeetingHandler) CreateMeeting

func (m *MeetingHandler) CreateMeeting(c *gin.Context)

CreateMeeting creates a meeting.

func (*MeetingHandler) DeleteMeeting

func (m *MeetingHandler) DeleteMeeting(c *gin.Context)

DeleteMeeting deletes a meeting.

func (*MeetingHandler) GetMeeting

func (m *MeetingHandler) GetMeeting(c *gin.Context)

GetMeeting gets a single meeting.

func (*MeetingHandler) GetMeetings

func (m *MeetingHandler) GetMeetings(c *gin.Context)

GetMeetings gets all meetings.

func (*MeetingHandler) Register

func (m *MeetingHandler) Register(parentGroup *gin.RouterGroup) error

Register creates 4 endpoints to manage meetings

/:userid/platforms/:platform/meetings (GET) - GetMeetings /:userid/platforms/:platform/meetings (POST) - CreateMeeting /:userid/platforms/:platform/meetings/:meetingid (GET) - GetMeeting /:userid/platforms/:platform/meetings/:meetingid (DELETE) - DeleteMeeting

Jump to

Keyboard shortcuts

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