Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserFinder ¶
type UserListProxy ¶
type UserListProxy struct { MockedDatabase *UserList StackCache UserList StackSize int LastSearchUsedCache bool }
func (*UserListProxy) FindUser ¶
func (u *UserListProxy) FindUser(id int32) (User, error)
FindUser will search for the specified name in the parameter in the cache list. If it finds it, it will return it. If not, it will search in the heavy list. Finally, if it's not in the heavy list, it will return an error (generated from the heavy list)
Click to show internal directories.
Click to hide internal directories.