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
Click to show internal directories.
Click to hide internal directories.