cassandra

package
v0.0.0-...-e5e8b79 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCassandraClient

func NewCassandraClient(session *gocql.Session) *cassandraClient

NewCassandraClient returns a new Cassandra Client interface for interacting with Cassandra

Types

type Client

type Client interface {
	GetTradesBetween(start, end time.Time) ([]*model.Trade, error)
	InsertTrade(selector string, trade *model.Trade) error
}

Client is the interface that provides operations on a Cassandra cluster to read and write Trades, Periods, and Simulation results.

Directories

Path Synopsis
Package mock_cassandra is a generated GoMock package.
Package mock_cassandra is a generated GoMock package.

Jump to

Keyboard shortcuts

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