Documentation ¶
Index ¶
- func GetDataSourceTimestamp(ctx context.Context, c *gin.Context, sourceTimeCollectionName string) models.DataSourceTS
- func GetDatasets(collectionName string) gin.HandlerFunc
- func GetDetailedDs(collectionName string, prodLockAccounts *[]string) gin.HandlerFunc
- func GetDetailsPage(c *gin.Context)
- func GetIndexPage(collectionName string) gin.HandlerFunc
- func GetIndexPageFromShortUrlId(shortUrlCollectionName string, datasourceTimestampCollectionName string) gin.HandlerFunc
- func GetRequestFromShortUrl(ctx context.Context, c *gin.Context, shortUrlCollectionName string, ...) models.ShortUrl
- func GetServiceInfo(gitVersion string, serviceInfo string) gin.HandlerFunc
- func GetShortUrl(ctx context.Context, c *gin.Context, shortUrlCollectionName string, ...) string
- func GetShortUrlParam(collectionName string) gin.HandlerFunc
- func GetSingleDetailedDs(collectionName string) gin.HandlerFunc
- func InitializeController(c *gin.Context, req interface{}) (context.Context, context.CancelFunc, time.Time, interface{})
- func VerboseControllerInitLog(c *gin.Context)
- func VerboseControllerOutLog(start time.Time, name string, req any, data any)
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 ¶
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 ¶
VerboseControllerInitLog prints logs of incoming request's url path
Types ¶
This section is empty.