Documentation ¶
Index ¶
- type UnsafeUserServiceServer
- type UserServiceClient
- func (_m *UserServiceClient) GetUserById(ctx context.Context, in *protos.GetUser, opts ...grpc.CallOption) (*protos.User, error)
- func (_m *UserServiceClient) GetUserByUsername(ctx context.Context, in *protos.GetUser, opts ...grpc.CallOption) (*protos.User, error)
- func (_m *UserServiceClient) GetUserStatus(ctx context.Context, in *protos.UserStatusRequest, opts ...grpc.CallOption) (*protos.UserStatusResponse, error)
- func (_m *UserServiceClient) RegisterGame(ctx context.Context, in *protos.RegisterGameRequest, opts ...grpc.CallOption) (*protos.OnlineStatus, error)
- func (_m *UserServiceClient) SaveUser(ctx context.Context, in *protos.User, opts ...grpc.CallOption) (*protos.User, error)
- func (_m *UserServiceClient) UpdateUser(ctx context.Context, in *protos.User, opts ...grpc.CallOption) (*protos.User, error)
- type UserServiceServer
- func (_m *UserServiceServer) GetUserById(_a0 context.Context, _a1 *protos.GetUser) (*protos.User, error)
- func (_m *UserServiceServer) GetUserByUsername(_a0 context.Context, _a1 *protos.GetUser) (*protos.User, error)
- func (_m *UserServiceServer) GetUserStatus(_a0 context.Context, _a1 *protos.UserStatusRequest) (*protos.UserStatusResponse, error)
- func (_m *UserServiceServer) RegisterGame(_a0 context.Context, _a1 *protos.RegisterGameRequest) (*protos.OnlineStatus, error)
- func (_m *UserServiceServer) SaveUser(_a0 context.Context, _a1 *protos.User) (*protos.User, error)
- func (_m *UserServiceServer) UpdateUser(_a0 context.Context, _a1 *protos.User) (*protos.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnsafeUserServiceServer ¶
UnsafeUserServiceServer is an autogenerated mock type for the UnsafeUserServiceServer type
func NewUnsafeUserServiceServer ¶
func NewUnsafeUserServiceServer(t interface { mock.TestingT Cleanup(func()) }) *UnsafeUserServiceServer
NewUnsafeUserServiceServer creates a new instance of UnsafeUserServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
type UserServiceClient ¶
UserServiceClient is an autogenerated mock type for the UserServiceClient type
func NewUserServiceClient ¶
func NewUserServiceClient(t interface { mock.TestingT Cleanup(func()) }) *UserServiceClient
NewUserServiceClient creates a new instance of UserServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UserServiceClient) GetUserById ¶
func (_m *UserServiceClient) GetUserById(ctx context.Context, in *protos.GetUser, opts ...grpc.CallOption) (*protos.User, error)
GetUserById provides a mock function with given fields: ctx, in, opts
func (*UserServiceClient) GetUserByUsername ¶
func (_m *UserServiceClient) GetUserByUsername(ctx context.Context, in *protos.GetUser, opts ...grpc.CallOption) (*protos.User, error)
GetUserByUsername provides a mock function with given fields: ctx, in, opts
func (*UserServiceClient) GetUserStatus ¶
func (_m *UserServiceClient) GetUserStatus(ctx context.Context, in *protos.UserStatusRequest, opts ...grpc.CallOption) (*protos.UserStatusResponse, error)
GetUserStatus provides a mock function with given fields: ctx, in, opts
func (*UserServiceClient) RegisterGame ¶
func (_m *UserServiceClient) RegisterGame(ctx context.Context, in *protos.RegisterGameRequest, opts ...grpc.CallOption) (*protos.OnlineStatus, error)
RegisterGame provides a mock function with given fields: ctx, in, opts
func (*UserServiceClient) SaveUser ¶
func (_m *UserServiceClient) SaveUser(ctx context.Context, in *protos.User, opts ...grpc.CallOption) (*protos.User, error)
SaveUser provides a mock function with given fields: ctx, in, opts
func (*UserServiceClient) UpdateUser ¶
func (_m *UserServiceClient) UpdateUser(ctx context.Context, in *protos.User, opts ...grpc.CallOption) (*protos.User, error)
UpdateUser provides a mock function with given fields: ctx, in, opts
type UserServiceServer ¶
UserServiceServer is an autogenerated mock type for the UserServiceServer type
func NewUserServiceServer ¶
func NewUserServiceServer(t interface { mock.TestingT Cleanup(func()) }) *UserServiceServer
NewUserServiceServer creates a new instance of UserServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UserServiceServer) GetUserById ¶
func (_m *UserServiceServer) GetUserById(_a0 context.Context, _a1 *protos.GetUser) (*protos.User, error)
GetUserById provides a mock function with given fields: _a0, _a1
func (*UserServiceServer) GetUserByUsername ¶
func (_m *UserServiceServer) GetUserByUsername(_a0 context.Context, _a1 *protos.GetUser) (*protos.User, error)
GetUserByUsername provides a mock function with given fields: _a0, _a1
func (*UserServiceServer) GetUserStatus ¶
func (_m *UserServiceServer) GetUserStatus(_a0 context.Context, _a1 *protos.UserStatusRequest) (*protos.UserStatusResponse, error)
GetUserStatus provides a mock function with given fields: _a0, _a1
func (*UserServiceServer) RegisterGame ¶
func (_m *UserServiceServer) RegisterGame(_a0 context.Context, _a1 *protos.RegisterGameRequest) (*protos.OnlineStatus, error)
RegisterGame provides a mock function with given fields: _a0, _a1
func (*UserServiceServer) UpdateUser ¶
func (_m *UserServiceServer) UpdateUser(_a0 context.Context, _a1 *protos.User) (*protos.User, error)
UpdateUser provides a mock function with given fields: _a0, _a1