handlers

package
v0.0.0-...-84b4eae Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePortfolioHandlers

func CreatePortfolioHandlers(cfg *utils.ServerConfig, sqlite *gorm.DB) gin.HandlerFunc

GetPortfolioHandlers handle POST request from /api/v1/trial

func DeletePortfolioHandlers

func DeletePortfolioHandlers(cfg *utils.ServerConfig, sqlite *gorm.DB) gin.HandlerFunc

func FreeTrialHandler

func FreeTrialHandler() gin.HandlerFunc

func GetPortfolioHandlers

func GetPortfolioHandlers(cfg *utils.ServerConfig, sqlite *gorm.DB) gin.HandlerFunc

GetPortfolioHandlers handle GET request from /api/v1/trial

func GraphqlHandler

func GraphqlHandler(db *mongodb.MongoDB) gin.HandlerFunc

GraphqlHandler defines the GQLGen GraphQL server handler

func LogoutHandler

func LogoutHandler() gin.HandlerFunc

LogoutHandler will set header token expire and redirect to free trial page

func PlaygroundHandler

func PlaygroundHandler(path string) gin.HandlerFunc

PlaygroundHandler Defines the Playground handler to expose our playground

func UpdatePortfolioHandlers

func UpdatePortfolioHandlers(cfg *utils.ServerConfig, sqlite *gorm.DB) gin.HandlerFunc

GetPortfolioHandlers handle PATCH request from /api/v1/trial/:id

func UserFollowersHandler

func UserFollowersHandler(cfg *utils.ServerConfig, db *mongodb.MongoDB) gin.HandlerFunc

func UserFriendsHandler

func UserFriendsHandler(cfg *utils.ServerConfig, db *mongodb.MongoDB) gin.HandlerFunc

UserFriendsHandlers handle GET /friends/:id

func UserHistoryHandler

func UserHistoryHandler(cfg *utils.ServerConfig) gin.HandlerFunc

func UserProfileHandler

func UserProfileHandler(cfg *utils.ServerConfig) gin.HandlerFunc

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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