routes

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HealthRouter

func HealthRouter(router *gin.Engine)

HealthRouter router for the health check endpoint

func NewGuestRouter

func NewGuestRouter(app *gin.Engine)

NewGuestRouter creates a new instance of the guest router

func NewInvitationRouter

func NewInvitationRouter(app *gin.Engine)

NewInvitationRouter creates a new instance of the invitation router

Types

type CreateGuestRequest

type CreateGuestRequest struct {
	FirstName       string `json:"first_name" binding:"required"`
	LastName        string `json:"last_name" binding:"required"`
	Email           string `json:"email" binding:"required"`
	Phone           string `json:"phone" binding:"required"`
	RegistrationKey string `json:"registration_key" binding:"required"`
}

CreateGuestRequest structure of the create request for guests

type CreateInvitationRequest

type CreateInvitationRequest struct {
	Name       string `json:"name" binding:"required"`
	GuestCount int    `json:"guest_count" binding:"required"`
}

CreateInvitationRequest structure of the create request for invitations

type GuestRouter

type GuestRouter struct {
	// contains filtered or unexported fields
}

GuestRouter router for guest CRUD operations

type InvitationRouter

type InvitationRouter struct {
	// contains filtered or unexported fields
}

InvitationRouter router for invitation CRUD operations

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳