Documentation ¶
Index ¶
- func CreateKeySpace(keyspace string, session *gocql.Session)
- func CreateUserTable(keyspace, table string, session *gocql.Session)
- func DropKeySpaceIfExists(keyspace string, session *gocql.Session)
- func ExecWithRequestCharge(q *gocql.Query) (float64, error)
- func FindAllUsers(keyspace, table string, session *gocql.Session) ([]model.User, float64)
- func FindUser(keyspace, table string, id int, session *gocql.Session) (model.User, float64)
- func Float64frombytes(bytes []byte) float64
- func InsertUser(keyspace, table string, session *gocql.Session, user model.User) (float64, time.Duration, error)
- func RequestChargeFromIter(iter *gocql.Iter) float64
- func ScanWithRequestCharge(q *gocql.Query, dest ...interface{}) (float64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKeySpace ¶
CreateKeySpace creates a keyspace
func CreateUserTable ¶
CreateUserTable creates a table
func DropKeySpaceIfExists ¶
DropKeySpaceIfExists drops keyspace if it exists
func FindAllUsers ¶
FindAllUsers gets all users
func Float64frombytes ¶
func InsertUser ¶
func InsertUser(keyspace, table string, session *gocql.Session, user model.User) (float64, time.Duration, error)
InsertUser creates an entry(row) in a table
func RequestChargeFromIter ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.