controllers

package
v0.0.0-...-3a63a8e Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2022 License: MIT Imports: 16 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 GetDatasets

func GetDatasets(collectionName string) gin.HandlerFunc

GetDatasets datasets controller

func GetDetailedDs

func GetDetailedDs(collectionName string, prodLockAccounts *[]string) gin.HandlerFunc

GetDetailedDs controller that returns datasets according to DataTable request json

func GetDetailsPage

func GetDetailsPage(c *gin.Context)

GetDetailsPage serves detailed_datasets.tmpl page

func GetIndexPage

func GetIndexPage(collectionName string) gin.HandlerFunc

GetIndexPage serves datasets.tmpl page

func GetIndexPageFromShortUrlId

func GetIndexPageFromShortUrlId(shortUrlCollectionName string, datasourceTimestampCollectionName string) gin.HandlerFunc

GetIndexPageFromShortUrlId controller that returns page from short url hash id

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 GetSingleDetailedDs

func GetSingleDetailedDs(collectionName string) gin.HandlerFunc

GetSingleDetailedDs controller that returns detailed dataset in TAPE or DISK

func InitializeController

func InitializeController(c *gin.Context, req interface{}) (context.Context, context.CancelFunc, time.Time, interface{})

InitializeController initialize controller requirements

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

func VerboseControllerInitLog

func VerboseControllerInitLog(c *gin.Context)

VerboseControllerInitLog prints logs of incoming request's url path

func VerboseControllerOutLog

func VerboseControllerOutLog(start time.Time, name string, req any, data any)

VerboseControllerOutLog prints debug logs after controller processed the api call

Types

This section is empty.

Jump to

Keyboard shortcuts

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