Documentation ¶
Index ¶
- type MockUserInfoRetriever
- func (ui *MockUserInfoRetriever) GetUserInfo(ctx context.Context, userId int32, accountId uint64) (*UserInfo, error)
- func (ui *MockUserInfoRetriever) GetUserInfoWithoutAccountId(ctx context.Context, userId int32) (*UserInfo, error)
- func (ui *MockUserInfoRetriever) SetUserInfo(ctx context.Context, accountId uint64, job string, jobGrade int32) error
- type UIRetriever
- func (ui *UIRetriever) GetUserInfo(ctx context.Context, userId int32, accountId uint64) (*UserInfo, error)
- func (ui *UIRetriever) GetUserInfoWithoutAccountId(ctx context.Context, userId int32) (*UserInfo, error)
- func (ui *UIRetriever) SetUserInfo(ctx context.Context, accountId uint64, job string, jobGrade int32) error
- type UserInfo
- type UserInfoRetriever
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUserInfoRetriever ¶
type MockUserInfoRetriever struct {
// contains filtered or unexported fields
}
func NewMockUserInfoRetriever ¶
func NewMockUserInfoRetriever(userInfo map[int32]*UserInfo) *MockUserInfoRetriever
func (*MockUserInfoRetriever) GetUserInfo ¶
func (*MockUserInfoRetriever) GetUserInfoWithoutAccountId ¶ added in v0.6.0
func (*MockUserInfoRetriever) SetUserInfo ¶
type UIRetriever ¶
type UIRetriever struct {
// contains filtered or unexported fields
}
func NewUIRetriever ¶
func (*UIRetriever) GetUserInfo ¶
func (*UIRetriever) GetUserInfoWithoutAccountId ¶ added in v0.6.0
func (*UIRetriever) SetUserInfo ¶
type UserInfo ¶
type UserInfoRetriever ¶
Click to show internal directories.
Click to hide internal directories.