Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store implements BoldDB backed UserKeyMapper
func (*Store) GetID ¶
func (store *Store) GetID(trackerID entities.TrackerID, key entities.UserKey) (res entities.UserID, err error)
GetID looks for provided user key in the mapping, stores it if it is not present and returns associated numeric user id
type UserKeyMapper ¶
type UserKeyMapper interface { Init() GetID(trackerID entities.TrackerID, key entities.UserKey) (res entities.UserID, err error) GetKey(trackerID entities.TrackerID, userID entities.UserID) (res string, err error) }
UserKeyMapper interface defines a storage for user key string to user id number mapping
Click to show internal directories.
Click to hide internal directories.