endpoints

package
v0.0.0-...-d6774cb Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init method is designed to create new Redis and MongoDB clients.

Types

type App

type App struct {
	RedisDB *db.RedisDatabase
	MongoDB *db.MongoDB
}

func (*App) FetchData

func (app *App) FetchData(w http.ResponseWriter, r *http.Request)

FetchData is designed to fetch data from MongoDB considering FetchRequestModel fields.

func (*App) In_memory

func (app *App) In_memory(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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