controllers

package
v0.0.0-...-f0d953d Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MethodNameColors = map[string]string{
	"qn_test":   "#0ad193",
	"qn_family": "#009fd1",
	"qn_gettx":  "#924fe7",
}

FILLME - Update colors below based on your method names

Functions

func API

func API(c *gin.Context)

func Dashboard

func Dashboard(c *gin.Context)

func DeactivateEndpoint

func DeactivateEndpoint(c *gin.Context)

func Deprovision

func Deprovision(c *gin.Context)

func GetChartOptions

func GetChartOptions() types.ChartOptions

func GetRpcRequestsByMethod

func GetRpcRequestsByMethod(db *gorm.DB, accountID int) ([]types.RpcMethodCallsByDay, error)

The GetRpcRequestsByMethod is not being used now but it's a good example of how to use GORM to query the database so i'm leaving it here. Also, it could be helpful to build an API that returns metrics to the customer in JSON.

func Healthcheck

func Healthcheck(c *gin.Context)

func Provision

func Provision(c *gin.Context)

func RPC

func RPC(c *gin.Context)

func RequestsIndex

func RequestsIndex(c *gin.Context)

func RpcRequestLogsMetricsForChart

func RpcRequestLogsMetricsForChart(db *gorm.DB, accountID int) (map[string]interface{}, error)

func Update

func Update(c *gin.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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