models

package
v1.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AuthType added in v0.2.1

type AuthType uint8
const (
	AuthTypeToken AuthType = iota
	AuthTypeCredentials
)

type QueryModel added in v0.0.2

type QueryModel struct {
	RawCql    string `json:"rawSql"`
	Format    any
	ActualCql string `json:"-"`
}

func LoadQueryModel added in v0.0.2

func LoadQueryModel(query backend.DataQuery) (*QueryModel, error)

type Settings

type Settings struct {
	// jsonData fields.
	URI          string   `json:"uri"`
	GRPCEndpoint string   `json:"grpcEndpoint"`
	AuthEndpoint string   `json:"authEndpoint"`
	UserName     string   `json:"user"`
	Secure       bool     `json:"secure"`
	AuthKind     AuthType `json:"authKind"`
	Database     string   `json:"database"`

	// secureJsonData fields. These are not part of jsonData (json:"-"); they are
	// loaded from the decrypted secrets via mapstructure in LoadSettings.
	Token    string `json:"-"`
	Password string `json:"-"`
}

func LoadSettings

func LoadSettings(config backend.DataSourceInstanceSettings) (Settings, error)

Jump to

Keyboard shortcuts

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