client

package
v0.0.0-...-cd7371e Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Address string
	AuthKey *string
	// contains filtered or unexported fields
}

func New

func New(address string, authKey *string) Client

func (*Client) Connect

func (client *Client) Connect() error

func (*Client) CreateDatabase

func (client *Client) CreateDatabase(name string) (idblib.CreateDatabaseResponse, error)

func (*Client) CreateTableInDatabase

func (client *Client) CreateTableInDatabase(name string, tableName string, fields map[string]interface{}) (idblib.CreateTableInDatabaseResponse, error)

func (*Client) GetDatabase

func (client *Client) GetDatabase(name string) (idblib.GetDatabaseResponse, error)

func (*Client) GetDatabaseTables

func (client *Client) GetDatabaseTables(name string) (idblib.GetDatabaseTablesResponse, error)

func (*Client) GetDatabases

func (client *Client) GetDatabases() (idblib.GetDatabasesResponse, error)

func (*Client) GetFromDatabaseTable

func (client *Client) GetFromDatabaseTable(name string, tableName string, request map[string]interface{}) (idblib.GetFromDatabaseTableResponse, error)

func (*Client) InsertToDatabaseTable

func (client *Client) InsertToDatabaseTable(name string, tableName string, object map[string]interface{}) (idblib.InsertToDatabaseTableResponse, error)

func (*Client) RemoveFromDatabaseTable

func (client *Client) RemoveFromDatabaseTable(name string, tableName string, request map[string]interface{}) (idblib.RemoveFromDatabaseTableResponse, error)

func (*Client) UpdateInDatabaseTable

func (client *Client) UpdateInDatabaseTable(name string, tableName string, object map[string]interface{}) (idblib.UpdateInDatabaseTableResponse, error)

type RequestResult

type RequestResult struct {
	M   map[string]interface{}
	Err error
}

Jump to

Keyboard shortcuts

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