go

module
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0

README

Deephaven Go Client

This is a Go package that provides a client interface for Deephaven Community Core. Details on usage can be found in the examples and in the documentation (both listed below).

Setup

First, you will need a working Go install (1.13+ is required; so apt-get is often too outdated). It can be installed from the official site.

In order to run tests or examples, a Deephaven server must be running. To run a server, follow the instructions here.

Tests

To run tests, simply run the following command from this folder.

$ go test -v ./...

All tests should pass within 30 seconds. Tests assume the server is on localhost:10000 by default, but can be configured by setting the DH_HOST and DH_PORT environment variables.

Examples

This project also includes several example applications. Examples assume the server is running on localhost:10000 by default, but can be configured by setting the DH_HOST and DH_PORT environment variables. An example can be run using one of the following commands:

$ go test -v ./pkg/client/example_table_ops_test.go
$ go test -v ./pkg/client/example_fetch_table_test.go
$ go test -v ./pkg/client/example_import_table_test.go
$ go test -v ./pkg/client/example_input_table_test.go
$ go test -v ./pkg/client/example_run_script_test.go

The source code is available in the directory for each example.

Using the Client

To add the client as a dependency to your project, run:

go get github.com/deephaven/deephaven-core/go/pkg/client

The client package can then be imported:

import (
	"github.com/deephaven/deephaven-core/go/pkg/client"
)

Detailed information on how to use the client package can be found in the pkg/client directories of the docs.

Viewing Docs

Online documentation for this package can be found on this page.

To generate and view docs locally, use Godoc:

$ go get -v golang.org/x/tools/cmd/godoc  # Installation, only needs to be done once
$ godoc

This will start up a web server (by default on http://localhost:6060) that can be opened in a browser. The docs for the package will be at this link.

Directories

Path Synopsis
internal
test_tools
Miscellaneous helpful functions to make testing easier with less boilerplate.
Miscellaneous helpful functions to make testing easier with less boilerplate.
pkg
client
This package allows you to interface with a Deephaven server over a network connection using Go.
This package allows you to interface with a Deephaven server over a network connection using Go.

Jump to

Keyboard shortcuts

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