utils

package
v0.0.0-...-73f03d9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	ServiceURL   []string `envconfig:"CASSANDRA_SERVICE_URL" required:"true"`
	Username     string   `envconfig:"CASSANDRA_USERNAME" required:"true"`
	Password     string   `envconfig:"CASSANDRA_PASSWORD" required:"true"`
	KeyspaceName string   `envconfig:"CASSANDRA_KEYSPACE_NAME" required:"true"`
	TableName    string   `envconfig:"CASSANDRA_TABLE_NAME" required:"true"`
}

type Store

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

func NewStore

func NewStore(log logging.Logger) (*Store, error)

func (*Store) Close

func (s *Store) Close()

func (*Store) GetSession

func (s *Store) GetSession() *gocql.Session

Jump to

Keyboard shortcuts

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