Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) CreateUser(ctx context.Context, user *users.User) error
- func (_m *Repository) GetUserByEmail(ctx context.Context, email string) (*users.User, error)
- func (_m *Repository) GetUserByID(ctx context.Context, id string) (*users.User, error)
- func (_m *Repository) GetUsers(ctx context.Context, afterId string, limit int32) ([]users.User, error)
- type UnsafeUserServiceServer
- type UserService
- func (_m *UserService) CreateUser(ctx context.Context, newUser *users.User) (*users.User, error)
- func (_m *UserService) GetUserFromJWT(ctx context.Context, jwtToken string) (*users.User, error)
- func (_m *UserService) GetUsers(ctx context.Context, afterId string, limit int32) ([]users.User, error)
- func (_m *UserService) LoginUser(ctx context.Context, email string, password string) (*users.User, string, error)
- type UserServiceClient
- func (_m *UserServiceClient) CreateUser(ctx context.Context, in *proto.NewUser, opts ...grpc.CallOption) (*proto.User, error)
- func (_m *UserServiceClient) GetUserFromJWT(ctx context.Context, in *proto.GetUserFromJWTInput, opts ...grpc.CallOption) (*proto.GetUserFromJWTResponse, error)
- func (_m *UserServiceClient) GetUsers(ctx context.Context, in *proto.GetUsersFilter, opts ...grpc.CallOption) (*proto.GetUsersResponse, error)
- func (_m *UserServiceClient) LoginUser(ctx context.Context, in *proto.LoginInput, opts ...grpc.CallOption) (*proto.LoginResponse, error)
- type UserServiceServer
- func (_m *UserServiceServer) CreateUser(_a0 context.Context, _a1 *proto.NewUser) (*proto.User, error)
- func (_m *UserServiceServer) GetUserFromJWT(_a0 context.Context, _a1 *proto.GetUserFromJWTInput) (*proto.GetUserFromJWTResponse, error)
- func (_m *UserServiceServer) GetUsers(_a0 context.Context, _a1 *proto.GetUsersFilter) (*proto.GetUsersResponse, error)
- func (_m *UserServiceServer) LoginUser(_a0 context.Context, _a1 *proto.LoginInput) (*proto.LoginResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, user
func (*Repository) GetUserByEmail ¶
GetUserByEmail provides a mock function with given fields: ctx, email
func (*Repository) GetUserByID ¶
GetUserByID provides a mock function with given fields: ctx, id
type UnsafeUserServiceServer ¶
UnsafeUserServiceServer is an autogenerated mock type for the UnsafeUserServiceServer type
type UserService ¶
UserService is an autogenerated mock type for the UserService type
func (*UserService) CreateUser ¶
CreateUser provides a mock function with given fields: ctx, newUser
func (*UserService) GetUserFromJWT ¶
GetUserFromJWT provides a mock function with given fields: ctx, jwtToken
type UserServiceClient ¶
UserServiceClient is an autogenerated mock type for the UserServiceClient type
func (*UserServiceClient) CreateUser ¶
func (_m *UserServiceClient) CreateUser(ctx context.Context, in *proto.NewUser, opts ...grpc.CallOption) (*proto.User, error)
CreateUser provides a mock function with given fields: ctx, in, opts
func (*UserServiceClient) GetUserFromJWT ¶
func (_m *UserServiceClient) GetUserFromJWT(ctx context.Context, in *proto.GetUserFromJWTInput, opts ...grpc.CallOption) (*proto.GetUserFromJWTResponse, error)
GetUserFromJWT provides a mock function with given fields: ctx, in, opts
func (*UserServiceClient) GetUsers ¶
func (_m *UserServiceClient) GetUsers(ctx context.Context, in *proto.GetUsersFilter, opts ...grpc.CallOption) (*proto.GetUsersResponse, error)
GetUsers provides a mock function with given fields: ctx, in, opts
func (*UserServiceClient) LoginUser ¶
func (_m *UserServiceClient) LoginUser(ctx context.Context, in *proto.LoginInput, opts ...grpc.CallOption) (*proto.LoginResponse, error)
LoginUser provides a mock function with given fields: ctx, in, opts
type UserServiceServer ¶
UserServiceServer is an autogenerated mock type for the UserServiceServer type
func (*UserServiceServer) CreateUser ¶
func (_m *UserServiceServer) CreateUser(_a0 context.Context, _a1 *proto.NewUser) (*proto.User, error)
CreateUser provides a mock function with given fields: _a0, _a1
func (*UserServiceServer) GetUserFromJWT ¶
func (_m *UserServiceServer) GetUserFromJWT(_a0 context.Context, _a1 *proto.GetUserFromJWTInput) (*proto.GetUserFromJWTResponse, error)
GetUserFromJWT provides a mock function with given fields: _a0, _a1
func (*UserServiceServer) GetUsers ¶
func (_m *UserServiceServer) GetUsers(_a0 context.Context, _a1 *proto.GetUsersFilter) (*proto.GetUsersResponse, error)
GetUsers provides a mock function with given fields: _a0, _a1
func (*UserServiceServer) LoginUser ¶
func (_m *UserServiceServer) LoginUser(_a0 context.Context, _a1 *proto.LoginInput) (*proto.LoginResponse, error)
LoginUser provides a mock function with given fields: _a0, _a1