client

package module
v0.0.0-...-71159a1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: GPL-3.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

View Source
const VERSION = "1.0"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(options Options) *Client

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) CreateDatabase

func (c *Client) CreateDatabase(name string) (response.CreateDatabaseResponse, error)

func (*Client) CreateTableInDatabase

func (c *Client) CreateTableInDatabase(name string, tableName string, fields map[string]request.Field, options *request.TableOptions) (response.CreateTableInDatabaseResponse, error)

func (*Client) DeleteDatabase

func (c *Client) DeleteDatabase(name string) (response.DeleteDatabaseResponse, error)

func (*Client) DeleteTableInDatabase

func (c *Client) DeleteTableInDatabase(name string, tableName string) (response.DeleteTableInDatabaseResponse, error)

func (*Client) GetDatabase

func (c *Client) GetDatabase(name string) (response.GetDatabaseResponse, error)

func (*Client) GetDatabaseTables

func (c *Client) GetDatabaseTables(name string) (response.GetDatabaseTablesResponse, error)

func (*Client) GetDatabases

func (c *Client) GetDatabases() (response.GetDatabasesResponse, error)

func (*Client) GetFromDatabaseTable

func (c *Client) GetFromDatabaseTable(name string, tableName string, request request.Request) (response.GetFromDatabaseTableResponse, error)

func (*Client) InsertToDatabaseTable

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

func (*Client) RemoveFromDatabaseTable

func (c *Client) RemoveFromDatabaseTable(name string, tableName string, request request.Request) (response.RemoveFromDatabaseTableResponse, error)

func (*Client) UpdateInDatabaseTable

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

type Options

type Options struct {
	Hostname      string
	Port          uint
	TLS           *bool
	SkipTLSVerify *bool
	AuthKey       *string
	Timeout       *time.Duration
	ReadLimit     *int64
}

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