Documentation ¶
Index ¶
- type MockDb
- func (db *MockDb) Connect(ctx context.Context) error
- func (db *MockDb) CreateUser(ctx context.Context, entry authdb.UserEntry) error
- func (db *MockDb) GetIDByEmail(ctx context.Context, email string) (string, error)
- func (db *MockDb) GetSharedValue(ctx context.Context, key string, ifNotExist string) (string, error)
- func (db *MockDb) GetUserByID(ctx context.Context, id string) (*authdb.UserEntry, error)
- func (db *MockDb) Ping(ctx context.Context) error
- func (db *MockDb) WaitForCreateUser(ctx context.Context, id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDb ¶
type MockDb struct { Connected bool EntriesByEmail map[string]*authdb.UserEntry EntriesByID map[string]*authdb.UserEntry CreateUserTimeout time.Duration }
func (*MockDb) CreateUser ¶
func (*MockDb) GetIDByEmail ¶
func (*MockDb) GetSharedValue ¶
func (*MockDb) GetUserByID ¶
Click to show internal directories.
Click to hide internal directories.