Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bagashiz/go-pos
/ functions
Functions
350 in github.com/bagashiz/go-pos
⨍
Functions
350
◇
Types & classes
152
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/order.go:39
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/order.go:107
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/payment.go:136
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/category.go:136
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/auth.go:92
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/user.go:151
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/core/port/mock/product.go:136
Method
Get
Get mocks base method.
internal/core/port/mock/cache.go:86
Method
Get
Get indicates an expected call of Get.
internal/core/port/mock/cache.go:95
Method
Get
Get retrieves the value from the redis database
internal/adapter/storage/redis/redis.go:42
Method
GetCategory
GetCategory mocks base method.
internal/core/port/mock/category.go:170
Method
GetCategory
GetCategory indicates an expected call of GetCategory.
internal/core/port/mock/category.go:179
Method
GetCategory
GetCategory godoc @Summary Get a category @Description get a category by id @Tags Categories @Accept json @Produce json @Param id path
internal/adapter/handler/http/category.go:84
Method
GetCategoryByID
GetCategoryByID mocks base method.
internal/core/port/mock/category.go:73
Method
GetCategoryByID
GetCategoryByID indicates an expected call of GetCategoryByID.
internal/core/port/mock/category.go:82
Method
GetCategoryByID
GetCategoryByID retrieves a category record from the database by id
internal/adapter/storage/postgres/repository/category.go:57
Method
GetOrder
GetOrder gets an order by ID
internal/core/service/order.go:130
Method
GetOrder
GetOrder mocks base method.
internal/core/port/mock/order.go:127
Method
GetOrder
GetOrder indicates an expected call of GetOrder.
internal/core/port/mock/order.go:136
Method
GetOrder
GetOrder godoc @Summary Get an order @Description Get an order by id and return the order data with purchase details @Tags Orders @Accept js
internal/adapter/handler/http/order.go:106
Method
GetOrderByID
GetOrderByID mocks base method.
internal/core/port/mock/order.go:59
Method
GetOrderByID
GetOrderByID indicates an expected call of GetOrderByID.
internal/core/port/mock/order.go:68
Method
GetOrderByID
GetOrderByID gets an order by ID from the database
internal/adapter/storage/postgres/repository/order.go:121
Method
GetPayment
GetPayment mocks base method.
internal/core/port/mock/payment.go:170
Method
GetPayment
GetPayment indicates an expected call of GetPayment.
internal/core/port/mock/payment.go:179
Method
GetPayment
GetPayment godoc @Summary Get a payment @Description get a payment by id @Tags Payments @Accept json @Produce json @Param id path int
internal/adapter/handler/http/payment.go:88
Method
GetPaymentByID
GetPaymentByID mocks base method.
internal/core/port/mock/payment.go:73
Method
GetPaymentByID
GetPaymentByID indicates an expected call of GetPaymentByID.
internal/core/port/mock/payment.go:82
Method
GetPaymentByID
GetPaymentByID retrieves a payment record from the database by id
internal/adapter/storage/postgres/repository/payment.go:59
Method
GetProduct
GetProduct mocks base method.
internal/core/port/mock/product.go:170
Method
GetProduct
GetProduct indicates an expected call of GetProduct.
internal/core/port/mock/product.go:179
Method
GetProduct
GetProduct godoc @Summary Get a product @Description get a product by id with its category @Tags Products @Accept json @Produce json @Par
internal/adapter/handler/http/product.go:92
Method
GetProductByID
GetProductByID mocks base method.
internal/core/port/mock/product.go:73
Method
GetProductByID
GetProductByID indicates an expected call of GetProductByID.
internal/core/port/mock/product.go:82
Method
GetProductByID
GetProductByID retrieves a product record from the database by id
internal/adapter/storage/postgres/repository/product.go:62
Method
GetUser
GetUser mocks base method.
internal/core/port/mock/user.go:170
Method
GetUser
GetUser indicates an expected call of GetUser.
internal/core/port/mock/user.go:179
Method
GetUser
GetUser godoc @Summary Get a user @Description Get a user by id @Tags Users @Accept json @Produce json @Param id path uint64 true "U
internal/adapter/handler/http/user.go:132
Method
GetUserByEmail
GetUserByEmail mocks base method.
internal/core/port/mock/user.go:73
Method
GetUserByEmail
GetUserByEmail indicates an expected call of GetUserByEmail.
internal/core/port/mock/user.go:82
Method
GetUserByEmail
GetUserByEmailAndPassword gets a user by email from the database
internal/adapter/storage/postgres/repository/user.go:93
Method
GetUserByID
GetUserByID mocks base method.
internal/core/port/mock/user.go:88
Method
GetUserByID
GetUserByID indicates an expected call of GetUserByID.
internal/core/port/mock/user.go:97
Method
GetUserByID
GetUserByID gets a user by ID from the database
internal/adapter/storage/postgres/repository/user.go:60
Method
ListCategories
ListCategories selects a list of categories with pagination
internal/core/port/category.go:18
Method
ListCategories
ListCategories mocks base method.
internal/core/port/mock/category.go:88
Method
ListCategories
ListCategories indicates an expected call of ListCategories.
internal/core/port/mock/category.go:97
Method
ListCategories
ListCategories mocks base method.
internal/core/port/mock/category.go:185
Method
ListCategories
ListCategories indicates an expected call of ListCategories.
internal/core/port/mock/category.go:194
Method
ListCategories
ListCategories retrieves a list of categories from the database
internal/adapter/storage/postgres/repository/category.go:87
Method
ListCategories
ListCategories godoc @Summary List categories @Description List categories with pagination @Tags Categories @Accept json @Produce json @P
internal/adapter/handler/http/category.go:122
Method
ListOrders
ListOrders lists all orders
internal/core/service/order.go:205
Method
ListOrders
ListOrders selects a list of orders with pagination
internal/core/port/order.go:18
Method
ListOrders
ListOrders mocks base method.
internal/core/port/mock/order.go:74
Method
ListOrders
ListOrders indicates an expected call of ListOrders.
internal/core/port/mock/order.go:83
Method
ListOrders
ListOrders mocks base method.
internal/core/port/mock/order.go:142
Method
ListOrders
ListOrders indicates an expected call of ListOrders.
internal/core/port/mock/order.go:151
Method
ListOrders
ListOrders lists all orders from the database
internal/adapter/storage/postgres/repository/order.go:197
Method
ListOrders
ListOrders godoc @Summary List orders @Description List orders and return an array of order data with purchase details @Tags Orders @Accept
internal/adapter/handler/http/order.go:145
Method
ListPayments
ListPayments selects a list of payments with pagination
internal/core/port/payment.go:18
Method
ListPayments
ListPayments mocks base method.
internal/core/port/mock/payment.go:88
Method
ListPayments
ListPayments indicates an expected call of ListPayments.
internal/core/port/mock/payment.go:97
Method
ListPayments
ListPayments mocks base method.
internal/core/port/mock/payment.go:185
Method
ListPayments
ListPayments indicates an expected call of ListPayments.
internal/core/port/mock/payment.go:194
Method
ListPayments
ListPayments retrieves a list of payments from the database
internal/adapter/storage/postgres/repository/payment.go:91
Method
ListPayments
ListPayments godoc @Summary List payments @Description List payments with pagination @Tags Payments @Accept json @Produce json @Param s
internal/adapter/handler/http/payment.go:126
Method
ListProducts
ListProducts selects a list of products with pagination
internal/core/port/product.go:18
Method
ListProducts
ListProducts mocks base method.
internal/core/port/mock/product.go:88
Method
ListProducts
ListProducts indicates an expected call of ListProducts.
internal/core/port/mock/product.go:97
Method
ListProducts
ListProducts mocks base method.
internal/core/port/mock/product.go:185
Method
ListProducts
ListProducts indicates an expected call of ListProducts.
internal/core/port/mock/product.go:194
Method
ListProducts
ListProducts retrieves a list of products from the database
internal/adapter/storage/postgres/repository/product.go:97
Method
ListProducts
ListProducts godoc @Summary List products @Description List products with pagination @Tags Products @Accept json @Produce json @Param c
internal/adapter/handler/http/product.go:134
Method
ListUsers
ListUsers selects a list of users with pagination
internal/core/port/user.go:20
Method
ListUsers
ListUsers mocks base method.
internal/core/port/mock/user.go:103
Method
ListUsers
ListUsers indicates an expected call of ListUsers.
internal/core/port/mock/user.go:112
Method
ListUsers
ListUsers mocks base method.
internal/core/port/mock/user.go:185
Method
ListUsers
ListUsers indicates an expected call of ListUsers.
internal/core/port/mock/user.go:194
Method
ListUsers
ListUsers lists all users from the database
internal/adapter/storage/postgres/repository/user.go:126
Method
ListUsers
ListUsers godoc @Summary List users @Description List users with pagination @Tags Users @Accept json @Produce json @Param skip query u
internal/adapter/handler/http/user.go:87
Method
Login
Login mocks base method.
internal/core/port/mock/auth.go:97
Method
Login
Login indicates an expected call of Login.
internal/core/port/mock/auth.go:106
Method
Login
Login godoc @Summary Login and get an access token @Description Logs in a registered user and returns an access token if the credentials are valid
internal/adapter/handler/http/auth.go:39
Function
NewMockAuthService
NewMockAuthService creates a new mock instance.
internal/core/port/mock/auth.go:85
Function
NewMockCategoryService
NewMockCategoryService creates a new mock instance.
internal/core/port/mock/category.go:129
Function
NewMockOrderRepository
NewMockOrderRepository creates a new mock instance.
internal/core/port/mock/order.go:32
Function
NewMockOrderService
NewMockOrderService creates a new mock instance.
internal/core/port/mock/order.go:100
Function
NewMockPaymentService
NewMockPaymentService creates a new mock instance.
internal/core/port/mock/payment.go:129
Function
NewMockProductService
NewMockProductService creates a new mock instance.
internal/core/port/mock/product.go:129
Function
NewMockUserService
NewMockUserService creates a new mock instance.
internal/core/port/mock/user.go:144
Method
Register
Register mocks base method.
internal/core/port/mock/user.go:200
Method
Register
Register indicates an expected call of Register.
internal/core/port/mock/user.go:209
Method
Register
Register godoc @Summary Register a new user @Description create a new user account with default role "cashier" @Tags Users @Accept json @Pr
internal/adapter/handler/http/user.go:43
Method
Set
Set mocks base method.
internal/core/port/mock/cache.go:101
Method
Set
Set indicates an expected call of Set.
internal/core/port/mock/cache.go:109
Method
Set
Set stores the value in the redis database
internal/adapter/storage/redis/redis.go:37
Function
TestAuthService_Login
(t *testing.T)
internal/core/service/auth_test.go:25
Function
TestCategoryService_CreateCategory
(t *testing.T)
internal/core/service/category_test.go:26
Function
TestCategoryService_DeleteCategory
(t *testing.T)
internal/core/service/category_test.go:883
Function
TestCategoryService_GetCategory
(t *testing.T)
internal/core/service/category_test.go:200
← previous
next →
201–300 of 350, ranked by callers