handler

package
v1.6.37 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package handler of the example application

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHobby

func AddHobby(userIDAuth uint64, hobby model.Hobby) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

AddHobby handles jobs for controller.AddHobby

func CreatePost

func CreatePost(userIDAuth uint64, post model.Post) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

CreatePost handles jobs for controller.CreatePost

func CreateUser

func CreateUser(userIDAuth uint64, user model.User) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

CreateUser handles jobs for controller.CreateUser

func DeletePost

func DeletePost(userIDAuth uint64, id string) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

DeletePost handles jobs for controller.DeletePost

func GetHobbies

func GetHobbies() (httpResponse gmodel.HTTPResponse, httpStatusCode int)

GetHobbies handles jobs for controller.GetHobbies

func GetPost

func GetPost(id string) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

GetPost handles jobs for controller.GetPost

func GetPosts

func GetPosts() (httpResponse gmodel.HTTPResponse, httpStatusCode int)

GetPosts handles jobs for controller.GetPosts

func GetUser

func GetUser(id string) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

GetUser handles jobs for controller.GetUser

func GetUsers

func GetUsers() (httpResponse gmodel.HTTPResponse, httpStatusCode int)

GetUsers handles jobs for controller.GetUsers

func MongoCreateOne

func MongoCreateOne(data model.Geocoding) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

MongoCreateOne - handles jobs for controller.MongoCreateOne

func MongoDeleteByID

func MongoDeleteByID(id string) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

MongoDeleteByID handles jobs for controller.MongoDeleteByID

func MongoDeleteFieldByID

func MongoDeleteFieldByID(req model.Geocoding) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

MongoDeleteFieldByID handles jobs for controller.MongoDeleteFieldByID

func MongoGetAll

func MongoGetAll() (httpResponse gmodel.HTTPResponse, httpStatusCode int)

MongoGetAll handles jobs for controller.MongoGetAll

func MongoGetByFilter

func MongoGetByFilter(req model.Geocoding) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

MongoGetByFilter handles jobs for controller.MongoGetByFilter

func MongoGetByID

func MongoGetByID(id string) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

MongoGetByID handles jobs for controller.MongoGetByID

func MongoUpdateByID

func MongoUpdateByID(req model.Geocoding) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

MongoUpdateByID handles jobs for controller.MongoUpdateByID

func RedisCreate

func RedisCreate(data model.RedisData) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

RedisCreate - handles jobs for controller.RedisCreate

func RedisCreateHash

func RedisCreateHash(data model.RedisDataHash) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

RedisCreateHash - handles jobs for controller.RedisCreateHash

func RedisDelete

func RedisDelete(data model.RedisData) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

RedisDelete - handles jobs for controller.RedisDelete

func RedisDeleteHash

func RedisDeleteHash(data model.RedisDataHash) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

RedisDeleteHash - handles jobs for controller.RedisDeleteHash

func RedisRead

func RedisRead(data model.RedisData) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

RedisRead - handles jobs for controller.RedisRead

func RedisReadHash

func RedisReadHash(data model.RedisDataHash) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

RedisReadHash - handles jobs for controller.RedisReadHash

func UpdatePost

func UpdatePost(userIDAuth uint64, id string, post model.Post) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

UpdatePost handles jobs for controller.UpdatePost

func UpdateUser

func UpdateUser(userIDAuth uint64, user model.User) (httpResponse gmodel.HTTPResponse, httpStatusCode int)

UpdateUser handles jobs for controller.UpdateUser

Types

This section is empty.

Jump to

Keyboard shortcuts

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