Documentation ¶
Index ¶
- Constants
- func BagGetAll(c *gin.Context)
- func BagPut(c *gin.Context)
- func BagRemove(c *gin.Context)
- func BulkyGetAll(c *gin.Context)
- func BulkyPut(c *gin.Context)
- func BulkyRemove(c *gin.Context)
- func ChainAddUser(c *gin.Context)
- func ChainApproveUser(c *gin.Context)
- func ChainCreate(c *gin.Context)
- func ChainDelete(c *gin.Context)
- func ChainDeleteUnapproved(c *gin.Context)
- func ChainGet(c *gin.Context)
- func ChainGetAll(c *gin.Context)
- func ChainGetNear(c *gin.Context)
- func ChainRemoveUser(c *gin.Context)
- func ChainUpdate(c *gin.Context)
- func ContactMail(c *gin.Context)
- func ContactNewsletter(c *gin.Context)
- func CronDaily(db *gorm.DB)
- func CronHourly(db *gorm.DB)
- func CronMonthly(db *gorm.DB)
- func EventCreate(c *gin.Context)
- func EventDelete(c *gin.Context)
- func EventGet(c *gin.Context)
- func EventGetAll(c *gin.Context)
- func EventGetPrevious(c *gin.Context)
- func EventICal(c *gin.Context)
- func EventUpdate(c *gin.Context)
- func GetRouteCoordinates(c *gin.Context)
- func ImageDelete(c *gin.Context)
- func ImageUpload(c *gin.Context)
- func InfoGet(c *gin.Context)
- func LoginEmail(c *gin.Context)
- func LoginSuperAsGenerateLink(c *gin.Context)
- func LoginSuperAsRedirect(c *gin.Context)
- func LoginValidate(c *gin.Context)
- func Logout(c *gin.Context)
- func MiddlewareSetDB(db *gorm.DB) gin.HandlerFunc
- func PaymentsInitiate(c *gin.Context)
- func PaymentsWebhook(c *gin.Context)
- func Poke(c *gin.Context)
- func RefreshToken(c *gin.Context)
- func RegisterBasicUser(c *gin.Context)
- func RegisterChainAdmin(c *gin.Context)
- func RouteOptimize(c *gin.Context)
- func RouteOrderGet(c *gin.Context)
- func RouteOrderSet(c *gin.Context)
- func UserCheckIfEmailExists(c *gin.Context)
- func UserGet(c *gin.Context)
- func UserGetAllOfChain(c *gin.Context)
- func UserHasNewsletter(c *gin.Context)
- func UserPurge(c *gin.Context)
- func UserTransferChain(c *gin.Context)
- func UserUpdate(c *gin.Context)
- type ChainCreateRequestBody
- type UserCreateRequestBody
Constants ¶
View Source
const ( UnapprovedReasonOther = "other" UnapprovedReasonOutOfAria = "out_of_aria" UnapprovedReasonSizesGenders = "sizes_genders" UnapprovedReasonLoopNotActive = "loop_not_active" )
View Source
const ErrAllowTOHFalse = "The Terms of the Hosts must be approved"
Variables ¶
This section is empty.
Functions ¶
func BulkyGetAll ¶
func BulkyRemove ¶
func ChainAddUser ¶
func ChainApproveUser ¶
func ChainCreate ¶
func ChainDelete ¶
func ChainDeleteUnapproved ¶
func ChainGetAll ¶
func ChainGetNear ¶
func ChainRemoveUser ¶
func ChainUpdate ¶
func ContactMail ¶
func ContactNewsletter ¶
func CronHourly ¶
func CronMonthly ¶
func EventCreate ¶
func EventDelete ¶
func EventGetAll ¶
func EventGetPrevious ¶
func EventUpdate ¶
func GetRouteCoordinates ¶
func ImageDelete ¶
func ImageUpload ¶
func LoginEmail ¶
func LoginSuperAsRedirect ¶
func LoginValidate ¶
func MiddlewareSetDB ¶
func MiddlewareSetDB(db *gorm.DB) gin.HandlerFunc
func PaymentsInitiate ¶
func PaymentsWebhook ¶
func RefreshToken ¶
func RegisterBasicUser ¶
func RegisterChainAdmin ¶
Sizes and Address is set to the user and the chain
func RouteOptimize ¶
func RouteOrderGet ¶
func RouteOrderSet ¶
func UserCheckIfEmailExists ¶
func UserGetAllOfChain ¶
func UserHasNewsletter ¶
func UserTransferChain ¶
func UserUpdate ¶
Types ¶
type ChainCreateRequestBody ¶
type ChainCreateRequestBody struct { Name string `json:"name" binding:"required"` Description string `json:"description"` Address string `json:"address" binding:"required"` CountryCode string `json:"country_code" binding:"required"` Latitude float64 `json:"latitude" binding:"required"` Longitude float64 `json:"longitude" binding:"required"` Radius float32 `json:"radius" binding:"required,gte=1.0,lte=100.0"` OpenToNewMembers bool `json:"open_to_new_members" binding:"required"` Sizes []string `json:"sizes" binding:"required"` Genders []string `json:"genders" binding:"required"` AllowTOH bool `json:"allow_toh" binding:"required"` }
type UserCreateRequestBody ¶
type UserCreateRequestBody struct { Email string `json:"email" binding:"required,email"` Name string `json:"name" binding:"required,min=3"` Address string `json:"address" binding:"required,min=3"` PhoneNumber string `json:"phone_number" binding:"required,min=3"` Newsletter bool `json:"newsletter"` Sizes []string `json:"sizes"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` }
Click to show internal directories.
Click to hide internal directories.