http

package
v0.0.0-...-508df49 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Mongo *mongo.Database
	MQTT  *mqtt.MQTT
	S3    *s3.S3
}

Handler manages to handle http endpoints.

func (*Handler) HandleGetRequests

func (h *Handler) HandleGetRequests(ctx *fiber.Ctx) error

HandleGetRequests return a json response of user ad.

func (*Handler) HandlePostRequests

func (h *Handler) HandlePostRequests(ctx *fiber.Ctx) error

HandlePostRequests get ad request and save it into mongodb and s3. after that send the id over rabbitMQ.

Jump to

Keyboard shortcuts

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