redash

package
v0.0.0-...-9a93681 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportQueries

func ExportQueries() (*[]*Query, error)

func ExportQueriesAsYAML

func ExportQueriesAsYAML() (*bytes.Buffer, error)

func Init

func Init(_baseUrl string, _apiKey string, _client *resty.Client)

func UpdateQuery

func UpdateQuery(query Query) error

Types

type QueriesResponse

type QueriesResponse struct {
	Count    int      `json:"count"`
	Page     int      `json:"page"`
	PageSize int      `json:"page_size"`
	Results  []*Query `json:"results"`
}

type Query

type Query struct {
	Id   int      `yaml:"id"`
	Name string   `yaml:"name"`
	Tags []string `yaml:"tags,flow"`
}

func GetQuery

func GetQuery(id int) (*Query, error)

Jump to

Keyboard shortcuts

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