controllers

package
v0.0.0-...-33c0e0c Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

auth_controller.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSubscription

func AddSubscription(c *fiber.Ctx) error

func CreatePlan

func CreatePlan(c *fiber.Ctx) error

func CreateSubscription

func CreateSubscription(c *fiber.Ctx) error

func CreateUser

func CreateUser(c *fiber.Ctx) error

func DeletePlan

func DeletePlan(c *fiber.Ctx) error

func DeleteSubscription

func DeleteSubscription(c *fiber.Ctx) error

func DeleteUser

func DeleteUser(c *fiber.Ctx) error

func GeneratePDF

func GeneratePDF(c *fiber.Ctx) error

GeneratePDF generates a PDF from the Markdown file

func GetPlan

func GetPlan(c *fiber.Ctx) error

func GetPlans

func GetPlans(c *fiber.Ctx) error

func GetSubscription

func GetSubscription(c *fiber.Ctx) error

func GetSubscriptionStats

func GetSubscriptionStats(c *fiber.Ctx) error

func GetSubscriptions

func GetSubscriptions(c *fiber.Ctx) error

func GetUser

func GetUser(c *fiber.Ctx) error

func GetUserSubscriptions

func GetUserSubscriptions(c *fiber.Ctx) error

func GetUsers

func GetUsers(c *fiber.Ctx) error

func Login

func Login(c *fiber.Ctx) error

func Register

func Register(c *fiber.Ctx) error

func UpdatePlan

func UpdatePlan(c *fiber.Ctx) error

func UpdateSubscription

func UpdateSubscription(c *fiber.Ctx) error

func UpdateUser

func UpdateUser(c *fiber.Ctx) error

Types

type LoginInput

type LoginInput struct {
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required,min=8"`
}

type RegisterInput

type RegisterInput struct {
	Name     string `json:"name" validate:"required"`
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required,min=8"`
}

type TokenResponse

type TokenResponse struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
	ExpiresIn    int64  `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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