Documentation ¶
Index ¶
- type ProductService
- type ProductServiceClient
- type ProductServiceServer
- type Repository
- type UnsafeProductServiceServer
- type UnsafeUserServiceServer
- 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 ProductService ¶
ProductService is an autogenerated mock type for the ProductService type
func (*ProductService) AddProduct ¶
func (_m *ProductService) AddProduct(ctx context.Context, jwtToken string, newProduct *products.Product) (*products.Product, error)
AddProduct provides a mock function with given fields: ctx, jwtToken, newProduct
func (*ProductService) GetProduct ¶
GetProduct provides a mock function with given fields: ctx, sku
type ProductServiceClient ¶
ProductServiceClient is an autogenerated mock type for the ProductServiceClient type
func (*ProductServiceClient) AddProduct ¶
func (_m *ProductServiceClient) AddProduct(ctx context.Context, in *proto.NewProduct, opts ...grpc.CallOption) (*proto.Product, error)
AddProduct provides a mock function with given fields: ctx, in, opts
func (*ProductServiceClient) GetProduct ¶
func (_m *ProductServiceClient) GetProduct(ctx context.Context, in *proto.GetProductInput, opts ...grpc.CallOption) (*proto.Product, error)
GetProduct provides a mock function with given fields: ctx, in, opts
type ProductServiceServer ¶
ProductServiceServer is an autogenerated mock type for the ProductServiceServer type
func (*ProductServiceServer) AddProduct ¶
func (_m *ProductServiceServer) AddProduct(_a0 context.Context, _a1 *proto.NewProduct) (*proto.Product, error)
AddProduct provides a mock function with given fields: _a0, _a1
func (*ProductServiceServer) GetProduct ¶
func (_m *ProductServiceServer) GetProduct(_a0 context.Context, _a1 *proto.GetProductInput) (*proto.Product, error)
GetProduct provides a mock function with given fields: _a0, _a1
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) GetProductBySKU ¶
GetProductBySKU provides a mock function with given fields: ctx, sku
func (*Repository) SaveProduct ¶
SaveProduct provides a mock function with given fields: ctx, product
type UnsafeProductServiceServer ¶
UnsafeProductServiceServer is an autogenerated mock type for the UnsafeProductServiceServer type
type UnsafeUserServiceServer ¶
UnsafeUserServiceServer is an autogenerated mock type for the UnsafeUserServiceServer type
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