iotdb

package
v0.0.0-...-f2fa926 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2021 License: MIT Imports: 1 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 {
	Host        string
	Port        string
	Username    string
	Password    string
	TimeoutInMs int
}

Client represents a client for an IoTDB server instance.

func NewClient

func NewClient(host string, port string, username string, password string, timeoutInMs int) Client

NewClient instantiates a new client for an IoTDB server instance.

func (Client) CountStorageGroups

func (c Client) CountStorageGroups() (int, error)

CountStorageGroups returns the storage groups count from a IoTDB instance.

func (Client) CountTimeSeries

func (c Client) CountTimeSeries() (int32, error)

CountTimeSeries returns the time series count from a IoTDB instance.

func (Client) CountUsers

func (c Client) CountUsers() (int, error)

CountUsers returns the users count from a IoTDB instance.

func (Client) GetSystemFileSize

func (c Client) GetSystemFileSize() (int64, error)

GetSystemFileSize returns the system file size (in bytes) from a IoTDB instance.

func (Client) GetWriteAheadLogFileSize

func (c Client) GetWriteAheadLogFileSize() (int64, error)

GetWriteAheadLogFileSize returns the write ahead log file size (in bytes) from a IoTDB instance.

func (Client) PingServer

func (c Client) PingServer() error

PingServer pings a IoTDB instance to know if the server is running or not.

Jump to

Keyboard shortcuts

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