cassandra_store

package
v0.0.0-...-9931aa1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CassandraStore

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

Basically you need a table just like this:

CREATE TABLE seaweed_files (

path varchar,
fids list<varchar>,
PRIMARY KEY (path)

);

Need to match flat_namespace.FlatNamespaceStore interface

Put(fullFileName string, fid string) (err error)
Get(fullFileName string) (fid string, err error)
Delete(fullFileName string) (fid string, err error)

func NewCassandraStore

func NewCassandraStore(keyspace string, hosts string) (c *CassandraStore, err error)

func (*CassandraStore) Close

func (c *CassandraStore) Close()

func (*CassandraStore) Delete

func (c *CassandraStore) Delete(fullFileName string) (err error)

Currently the fid is not returned

func (*CassandraStore) Get

func (c *CassandraStore) Get(fullFileName string) (fid string, err error)

func (*CassandraStore) Put

func (c *CassandraStore) Put(fullFileName string, fid string) (err error)

Jump to

Keyboard shortcuts

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