Documentation ¶
Overview ¶
Cassandra backend for authentication.
Index ¶
- func Initialize(session *gocql.Session)
- type CassLoginHook
- func (lh *CassLoginHook) AuthUserOnly(user []byte) (postauth.AuthRank, bool)
- func (lh *CassLoginHook) AuthUserPass(user, password []byte) (postauth.AuthRank, bool)
- func (lh *CassLoginHook) InitHash(name string) (err error)
- func (lh *CassLoginHook) InsertUser(user, password []byte, rank postauth.AuthRank) error
- func (lh *CassLoginHook) UpdateUserPassword(user, password []byte) error
- func (lh *CassLoginHook) UpdateUserRank(user []byte, rank postauth.AuthRank) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type CassLoginHook ¶
type CassLoginHook struct { DB *gocql.Session Hash pwdhash.PasswordHash HashCost int }
func (*CassLoginHook) AuthUserOnly ¶
func (lh *CassLoginHook) AuthUserOnly(user []byte) (postauth.AuthRank, bool)
Not implemented.
func (*CassLoginHook) AuthUserPass ¶
func (lh *CassLoginHook) AuthUserPass(user, password []byte) (postauth.AuthRank, bool)
func (*CassLoginHook) InitHash ¶
func (lh *CassLoginHook) InitHash(name string) (err error)
func (*CassLoginHook) InsertUser ¶
func (lh *CassLoginHook) InsertUser(user, password []byte, rank postauth.AuthRank) error
func (*CassLoginHook) UpdateUserPassword ¶
func (lh *CassLoginHook) UpdateUserPassword(user, password []byte) error
func (*CassLoginHook) UpdateUserRank ¶
func (lh *CassLoginHook) UpdateUserRank(user []byte, rank postauth.AuthRank) error
Click to show internal directories.
Click to hide internal directories.