cassandra

package
v0.0.0-...-b6b9972 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cassandra contains Cassandra-specific repository implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(hosts []string, keyspace string) (*gocql.Session, error)

Connect establishes connection to the Cassandra cluster.

func Initialize

func Initialize(session *gocql.Session) error

Initialize creates tables used by the service.

func NewChannelRepository

func NewChannelRepository(session *gocql.Session) manager.ChannelRepository

NewChannelRepository instantiates Cassandra channel repository.

func NewClientRepository

func NewClientRepository(session *gocql.Session) manager.ClientRepository

NewClientRepository instantiates Cassandra client repository.

func NewUserRepository

func NewUserRepository(session *gocql.Session) manager.UserRepository

NewUserRepository instantiates Cassandra user repository.

Types

This section is empty.

Jump to

Keyboard shortcuts

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