astraclient

package
v0.0.0-...-da4d89c Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 9 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() (*Client, error)

func (*Client) Close

func (c *Client) Close()

func (*Client) Keyspace

func (c *Client) Keyspace() string

func (*Client) Session

func (c *Client) Session() *client.StargateClient

type Config

type Config struct {
	DbHost               string `envconfig:"ASTRA_DB_HOST" default:"apps.astra.datastax.com"`
	EntityName           string `envconfig:"ASTRA_ENTITY_NAME" required:"true"`
	CredentailIdentifier string `envconfig:"ASTRA_CRED_IDENTIFIER" required:"true"`
	Keyspace             string `envconfig:"ASTRA_DB_NAME" default:"capten"`
}

Jump to

Keyboard shortcuts

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