Package caslock implements a row lock mechanism for cassandra, based on lightweight transactions. It allows to lock an arbitrary number of rows, protecting them from concurrent access.
l, err := caslock.Acquire(session, "keyspace", "table",
30 * time.Second, "rowKey1", "rowKey2")
if err != nil {
return err
}
defer l.Release()
go get github.com/jroimartin/caslock
godoc github.com/jroimartin/caslock