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 ¶
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 (d *KdbDatasource) CheckHealth(_ context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*KdbDatasource) Dispose ¶
func (d *KdbDatasource) Dispose()
func (*KdbDatasource) QueryData ¶
func (d *KdbDatasource) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
Click to show internal directories.
Click to hide internal directories.