plugin

package
v1.0.0-signed Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ADAPTOR_VERSION = float64(1.0)

Variables

This section is empty.

Functions

func NewKdbDatasource

func NewKdbDatasource(settings backend.DataSourceInstanceSettings) (instancemgmt.Instance, error)

NewKdbDatasource creates a new datasource instance.

func ParseGroupedKdbTable

func ParseGroupedKdbTable(res *kdb.K, includeKeys bool) ([]*data.Frame, error)

func ParseSimpleKdbTable

func ParseSimpleKdbTable(res *kdb.K) (*data.Frame, error)

Types

type KdbDatasource

type KdbDatasource struct {
	Host           string `json:"host"`
	Port           int    `json:"port"`
	Timeout        string `json:"timeout"`
	WithTls        bool   `json:"withTLS"`
	SkipVertifyTLS bool   `json:"skipVerifyTLS"`
	WithCACert     bool   `json:"withCACert"`

	TlsCertificate  string
	TlsKey          string
	CaCert          string
	TlsServerConfig *tls.Config
	DialTimeout     time.Duration
	KdbHandle       *kdb.KDBConn

	IsOpen            bool
	KdbHandleListener func()
	RunKdbQuerySync   func(*kdb.K, time.Duration) (*kdb.K, error)
	OpenConnection    func() error
	CloseConnection   func() error
	WriteConnection   func(kdb.ReqType, *kdb.K) error
	ReadConnection    func() (*kdb.K, kdb.ReqType, error)
	// contains filtered or unexported fields
}

func (*KdbDatasource) CheckHealth

func (*KdbDatasource) Dispose

func (d *KdbDatasource) Dispose()

func (*KdbDatasource) QueryData

type QueryModel

type QueryModel struct {
	QueryText         string `json:"queryText"`
	Timeout           int    `json:"timeOut"`
	UseTimeColumn     bool   `json:"useTimeColumn"`
	TimeColumn        string `json:"timeColumn"`
	IncludeKeyColumns bool   `json:"includeKeyColumns"`
}

Jump to

Keyboard shortcuts

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