scrape

package
v0.0.0-...-8ed77bd Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAppStatus

func CheckAppStatus(c *gin.Context)

func FetchMetrics

func FetchMetrics(ctx context.Context, appName string, requests chan SaveRequest) (map[string]*db.ParsedData, []string, error)

func GetDB

func GetDB(appName string) (*sql.DB, error)

getDB returns an existing database connection or creates a new one

func HandleSyncOperation

func HandleSyncOperation(c *gin.Context, appName string, syncValue int, queryType string)

func InitDatabase

func InitDatabase()

Types

type SaveRequest

type SaveRequest struct {
	// contains filtered or unexported fields
}

Define a struct for save requests

Jump to

Keyboard shortcuts

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