plugin

package
v0.0.0-...-d5751c4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeCronHandler

func InitializeCronHandler(settingSetting *setting.Setting, databaseManager store.DatabaseManager, logger *log.Logger, dashboardAdapter grafana.DashboardAdapter, browserPoolManager cdp.BrowserPoolManager, schedulers *cron.Schedulers, sender smtp.Sender) (*cron2.ReportScheduleCron, error)

func New

New creates a new *App instance.

Types

type App

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

func NewApp

func NewApp(logger *log.Logger) (*App, error)

func (*App) CallResource

CallResource HTTP style resource

func (*App) CheckHealth

CheckHealth handles health checks sent from Grafana to the plugin.

type AppInstance

type AppInstance struct {
	OrgID int
	// contains filtered or unexported fields
}

func Initialize

func Initialize(settingSetting *setting.Setting, databaseManager store.DatabaseManager, logger *log.Logger, dashboardAdapter grafana.DashboardAdapter, browserPoolManager cdp.BrowserPoolManager, schedulers *cron.Schedulers, sender smtp.Sender) (*AppInstance, error)

func (*AppInstance) Dispose

func (a *AppInstance) Dispose()

Dispose here tells plugin SDK that plugin wants to clean up resources when a new instance created.

Jump to

Keyboard shortcuts

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