cassandra

package
v0.0.0-...-0871eb3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(hosts []string, port int, keyspace string) (err error)

New is to create Cassandora instance

Types

type CassInfo

type CassInfo struct {
	Session *gocql.Session
}

CassInfo is for session data of Cassandora

func GetCass

func GetCass() *CassInfo

GetCass is to get Cassandora instance singleton architecture

func (*CassInfo) Close

func (cs *CassInfo) Close()

Close is to close connection

Jump to

Keyboard shortcuts

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