Documentation ¶ Index ¶ type DB func NewDB(conn *sqlx.DB, secretKey string) *DB func (db *DB) AuthKey(userID, keyID string) (models.AuthKey, error) func (db *DB) DeleteAuthKey(userID, keyID string) error func (db *DB) SetAuthKey(authKey models.AuthKey) error type TestSuite func (s *TestSuite) Reset() func (s *TestSuite) SetupSuite() func (s *TestSuite) TearDownSuite() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DB ¶ type DB struct { // contains filtered or unexported fields } func NewDB ¶ func NewDB(conn *sqlx.DB, secretKey string) *DB NewRepo returns db implements Repo interface func (*DB) AuthKey ¶ func (db *DB) AuthKey(userID, keyID string) (models.AuthKey, error) func (*DB) DeleteAuthKey ¶ func (db *DB) DeleteAuthKey(userID, keyID string) error func (*DB) SetAuthKey ¶ func (db *DB) SetAuthKey(authKey models.AuthKey) error type TestSuite ¶ type TestSuite struct { suite.Suite Conn *rdb.DB } func (*TestSuite) Reset ¶ func (s *TestSuite) Reset() func (*TestSuite) SetupSuite ¶ func (s *TestSuite) SetupSuite() func (*TestSuite) TearDownSuite ¶ func (s *TestSuite) TearDownSuite() Source Files ¶ View all Source files auth_key.go db.go testsuite.go Click to show internal directories. Click to hide internal directories.