handlers

package
v0.0.0-...-973246e Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package handlers/handlers.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	DB *gorm.DB
}

Handler is a struct that holds the database connection

func NewHandler

func NewHandler(db *gorm.DB) *Handler

NewHandler creates a new instance of the Handler struct

func (*Handler) CreateOrganization

func (h *Handler) CreateOrganization(c *gin.Context)

CreateOrganization creates a new organization

func (*Handler) CreateSubscription

func (h *Handler) CreateSubscription(c *gin.Context)

CreateSubscription creates a new subscription

func (*Handler) CreateUser

func (h *Handler) CreateUser(c *gin.Context)

CreateUser creates a new user

func (*Handler) DeleteOrganization

func (h *Handler) DeleteOrganization(c *gin.Context)

DeleteOrganization deletes an organization

func (*Handler) DeleteSubscription

func (h *Handler) DeleteSubscription(c *gin.Context)

DeleteSubscription deletes a subscription

func (*Handler) DeleteUser

func (h *Handler) DeleteUser(c *gin.Context)

DeleteUser deletes a user

func (*Handler) GetOrganization

func (h *Handler) GetOrganization(c *gin.Context)

GetOrganization retrieves an organization by ID

func (*Handler) GetSubscription

func (h *Handler) GetSubscription(c *gin.Context)

GetSubscription retrieves a subscription by ID

func (*Handler) GetUser

func (h *Handler) GetUser(c *gin.Context)

GetUser retrieves a user by ID

func (*Handler) UpdateOrganization

func (h *Handler) UpdateOrganization(c *gin.Context)

UpdateOrganization updates an organization

func (*Handler) UpdateSubscription

func (h *Handler) UpdateSubscription(c *gin.Context)

UpdateSubscription updates a subscription

func (*Handler) UpdateUser

func (h *Handler) UpdateUser(c *gin.Context)

UpdateUser updates a user

Jump to

Keyboard shortcuts

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