datasource

package
v0.0.0-...-45da385 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDatasource

func NewDatasource() datasource.ServeOpts

Types

type OwntracksDatasource

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

OwntracksDatasource implements a datasource with Owntracks' Recorder as its backend

func (*OwntracksDatasource) CheckHealth

func (owntracksDatasource *OwntracksDatasource) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)

func (*OwntracksDatasource) Client

func (ds *OwntracksDatasource) Client(pluginctx backend.PluginContext) (client.Client, error)

func (*OwntracksDatasource) QueryData

func (owntracksDatasource *OwntracksDatasource) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)

func (*OwntracksDatasource) Settings

func (ds *OwntracksDatasource) Settings(pluginctx backend.PluginContext) (*datasourceSettings, error)

type Query

type Query struct {
	User   string `json:"user"`
	Device string `json:"device"`
}

Jump to

Keyboard shortcuts

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