mocks

package
v0.0.0-...-db75719 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func (*Repository) CreateUser

func (_m *Repository) CreateUser(ctx context.Context, user *users.User) error

CreateUser provides a mock function with given fields: ctx, user

func (*Repository) GetUserByEmail

func (_m *Repository) GetUserByEmail(ctx context.Context, email string) (*users.User, error)

GetUserByEmail provides a mock function with given fields: ctx, email

func (*Repository) GetUserByID

func (_m *Repository) GetUserByID(ctx context.Context, id string) (*users.User, error)

GetUserByID provides a mock function with given fields: ctx, id

func (*Repository) GetUsers

func (_m *Repository) GetUsers(ctx context.Context, afterId string, limit int32) ([]users.User, error)

GetUsers provides a mock function with given fields: ctx, afterId, limit

type UnsafeUserServiceServer

type UnsafeUserServiceServer struct {
	mock.Mock
}

UnsafeUserServiceServer is an autogenerated mock type for the UnsafeUserServiceServer type

type UserService

type UserService struct {
	mock.Mock
}

UserService is an autogenerated mock type for the UserService type

func (*UserService) CreateUser

func (_m *UserService) CreateUser(ctx context.Context, newUser *users.User) (*users.User, error)

CreateUser provides a mock function with given fields: ctx, newUser

func (*UserService) GetUserFromJWT

func (_m *UserService) GetUserFromJWT(ctx context.Context, jwtToken string) (*users.User, error)

GetUserFromJWT provides a mock function with given fields: ctx, jwtToken

func (*UserService) GetUsers

func (_m *UserService) GetUsers(ctx context.Context, afterId string, limit int32) ([]users.User, error)

GetUsers provides a mock function with given fields: ctx, afterId, limit

func (*UserService) LoginUser

func (_m *UserService) LoginUser(ctx context.Context, email string, password string) (*users.User, string, error)

LoginUser provides a mock function with given fields: ctx, email, password

type UserServiceClient

type UserServiceClient struct {
	mock.Mock
}

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

GetUserFromJWT provides a mock function with given fields: ctx, in, opts

func (*UserServiceClient) GetUsers

GetUsers provides a mock function with given fields: ctx, in, opts

func (*UserServiceClient) LoginUser

LoginUser provides a mock function with given fields: ctx, in, opts

type UserServiceServer

type UserServiceServer struct {
	mock.Mock
}

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

GetUserFromJWT provides a mock function with given fields: _a0, _a1

func (*UserServiceServer) GetUsers

GetUsers provides a mock function with given fields: _a0, _a1

func (*UserServiceServer) LoginUser

LoginUser provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL