models

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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 {
	URI          string   `json:"uri"`
	Token        string   `json:"token"`
	GRPCEndpoint string   `json:"grpcEndpoint"`
	AuthEndpoint string   `json:"authEndpoint"`
	UserName     string   `json:"user"`
	Password     string   `json:"password"`
	Secure       bool     `json:"secure"`
	AuthKind     AuthType `json:"authKind"`
}

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