Documentation ¶
Index ¶
- Variables
- 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 Params
- 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 ¶
View Source
var (
ErrAccountError = fmt.Errorf("failed to retrieve account data")
)
Functions ¶
This section is empty.
Types ¶
type MockUserInfoRetriever ¶
type MockUserInfoRetriever struct {
// contains filtered or unexported fields
}
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 (*UIRetriever) GetUserInfo ¶
func (*UIRetriever) GetUserInfoWithoutAccountId ¶ added in v0.6.0
func (*UIRetriever) SetUserInfo ¶
type UserInfo ¶
type UserInfoRetriever ¶
type UserInfoRetriever interface { GetUserInfo(ctx context.Context, userId int32, accountId uint64) (*UserInfo, error) GetUserInfoWithoutAccountId(ctx context.Context, userId int32) (*UserInfo, error) SetUserInfo(ctx context.Context, accountId uint64, job string, jobGrade int32) error }
func NewMockUserInfoRetriever ¶
func NewMockUserInfoRetriever(userInfo map[int32]*UserInfo) UserInfoRetriever
func NewUIRetriever ¶
func NewUIRetriever(p Params) UserInfoRetriever
Click to show internal directories.
Click to hide internal directories.