client

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: May 25, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitInstance

func InitInstance(timeout time.Duration)

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() *Client

func New

func New(timeout time.Duration) *Client

func (*Client) ExecuteRawSql

func (c *Client) ExecuteRawSql(token string, baseUrl string,
	namespace string, dataSource string, sql string, executeParams map[string]any) ([]map[string]any, error)

func (*Client) ExecuteSql

func (c *Client) ExecuteSql(token string, baseUrl string,
	namespace string, dataSource string, name string, executeParams map[string]any) ([]map[string]any, error)

func (*Client) GetDataSources

func (c *Client) GetDataSources(token string, baseUrl string, namespace string, name string, typeStr string, pageNo int, pageSize int) ([]DataSourceInfo, error)

func (*Client) GetNamespaces

func (c *Client) GetNamespaces(token string, baseUrl string, name string, pageNo int, pageSize int) ([]NamespaceInfo, error)

type DataSourceInfo

type DataSourceInfo struct {
	Namespace   string `json:"namespace"`
	Name        string `json:"name"`
	Type        string `json:"type"`
	Spec        string `json:"spec"`
	Creator     string `json:"creator"`
	CreatedTime string `json:"createdTime"`
}

type NamespaceInfo

type NamespaceInfo struct {
	ID          string `json:"id"`
	Name        string `json:"name"`
	Creator     string `json:"creator"`
	CreatedTime string `json:"createdTime"`
}

Jump to

Keyboard shortcuts

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