Documentation ¶
Index ¶
- func CreatePortfolioHandlers(cfg *utils.ServerConfig, sqlite *gorm.DB) gin.HandlerFunc
- func DeletePortfolioHandlers(cfg *utils.ServerConfig, sqlite *gorm.DB) gin.HandlerFunc
- func FreeTrialHandler() gin.HandlerFunc
- func GetPortfolioHandlers(cfg *utils.ServerConfig, sqlite *gorm.DB) gin.HandlerFunc
- func GraphqlHandler(db *mongodb.MongoDB) gin.HandlerFunc
- func LogoutHandler() gin.HandlerFunc
- func PlaygroundHandler(path string) gin.HandlerFunc
- func UpdatePortfolioHandlers(cfg *utils.ServerConfig, sqlite *gorm.DB) gin.HandlerFunc
- func UserFollowersHandler(cfg *utils.ServerConfig, db *mongodb.MongoDB) gin.HandlerFunc
- func UserFriendsHandler(cfg *utils.ServerConfig, db *mongodb.MongoDB) gin.HandlerFunc
- func UserHistoryHandler(cfg *utils.ServerConfig) gin.HandlerFunc
- func UserProfileHandler(cfg *utils.ServerConfig) gin.HandlerFunc
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.
Click to show internal directories.
Click to hide internal directories.