controllers

package
v0.0.0-...-ac40b45 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataSourceTimestamp

func GetDataSourceTimestamp(ctx context.Context, c *gin.Context, sourceTimeCollectionName string) models.DataSourceTS

GetDataSourceTimestamp gets the creation time of used data in MongoDB (sqoop dumps)

func GetDatasetsInTapeDisk

func GetDatasetsInTapeDisk(collectionName string) gin.HandlerFunc

GetDatasetsInTapeDisk controller that returns datasets according to DataTable request json

func GetDatasetsInTapeDiskPage

func GetDatasetsInTapeDiskPage(collectionName, inTapeDiskApiEP, rseDetailsApiEP, shortUrlApiEP, baseEP string) gin.HandlerFunc

GetDatasetsInTapeDiskPage serves datasets_in_tape_disk.tmpl page

func GetDetailedDatasets

func GetDetailedDatasets(collectionName string) gin.HandlerFunc

GetDetailedDatasets controller that returns datasets according to DataTable request json

func GetDetailedDatasetsPage

func GetDetailedDatasetsPage(collectionName, detailedDsApiEP, shortUrlApiEP, baseEP string) gin.HandlerFunc

GetDetailedDatasetsPage serves detailed_datasets.tmpl page

func GetEachRseDetails

func GetEachRseDetails(collectionName string) gin.HandlerFunc

GetEachRseDetails controller that returns detailed dataset in TAPE or DISK

func GetIndexPageFromShortUrlId

func GetIndexPageFromShortUrlId(shortUrlCollectionName, datasourceTimestampCollectionName,
	mainDsApiEP, detailedDsApiEP, inTapeDiskApiEP, rseDetailsApiEP, shortUrlApiEP, baseEP string) gin.HandlerFunc

GetIndexPageFromShortUrlId controller that returns page from short url hash id

func GetMainDatasets

func GetMainDatasets(collectionName string) gin.HandlerFunc

GetMainDatasets controller

func GetMainDatasetsPage

func GetMainDatasetsPage(collectionName, mainDsApiEP, shortUrlApiEP, rseDetailsApiEP, baseEP string) gin.HandlerFunc

GetMainDatasetsPage serves main_datasets.tmpl page

func GetRequestFromShortUrl

func GetRequestFromShortUrl(ctx context.Context, c *gin.Context, shortUrlCollectionName string, hashId string) models.ShortUrl

GetRequestFromShortUrl get query results efficiently

func GetServiceInfo

func GetServiceInfo(gitVersion string, serviceInfo string) gin.HandlerFunc

GetServiceInfo provides basic functionality of status response

func GetShortUrl

func GetShortUrl(ctx context.Context, c *gin.Context, shortUrlCollectionName string, req models.ShortUrlRequest) string

GetShortUrl get query results efficiently

func GetShortUrlParam

func GetShortUrlParam(collectionName string) gin.HandlerFunc

GetShortUrlParam controller that returns short url parameter which is md5 hash of the datatables request

func InitializeCtxAndBindRequestBody

func InitializeCtxAndBindRequestBody(c *gin.Context, req interface{}) (context.Context, context.CancelFunc, interface{})

InitializeCtxAndBindRequestBody initialize controller requirements

initialize context, bind request json for the controller, prints initial logs, gets start time etc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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