astra

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConfig

type ClusterConfig struct {
	Timeout *time.Duration
	// contains filtered or unexported fields
}

func NewClusterConfig

func NewClusterConfig(host string, port string, username string, password string, filepath string) *ClusterConfig

Creates a new configuration for GoCQL for DataStax Astra. Filepath is the location of the MTLS certificates from the secure connect bundle

type ClusterConnection

type ClusterConnection struct {
	Session *gocql.Session
}

func NewClusterConnection

func NewClusterConnection(config *ClusterConfig) (*ClusterConnection, error)

Creates a new database connection to DataStax Astra using GoCQL

Jump to

Keyboard shortcuts

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