Documentation ¶
Index ¶
- func ConnectMongoDB() *mongo.Database
- func ErrorHandler(err error) bool
- func GetIPAdress(req *http.Request) (ip string, port string)
- func IsExists(path string) bool
- func VerifyOwnership(id primitive.ObjectID, auth_key string) bool
- func WriteLog(req *http.Request, message string)
- func WriteResult(req *http.Request, res http.ResponseWriter, data interface{}, message string)
- type Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnectMongoDB ¶
func ErrorHandler ¶
func WriteResult ¶
func WriteResult(req *http.Request, res http.ResponseWriter, data interface{}, message string)
Types ¶
Click to show internal directories.
Click to hide internal directories.