Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codeedu/imersaofc5
/ functions
Functions
103 in github.com/codeedu/imersaofc5
⨍
Functions
103
◇
Types & classes
58
↓ 6 callers
Function
NewCreditCard
(number string, name string, expirationMonth int, expirationYear int, ExpirationCVV int)
golang/domain/entity/credit_card.go:17
↓ 5 callers
Method
Insert
(id string, account string, amount float64, status string, errorMessage string)
golang/domain/repository/repository.go:4
↓ 5 callers
Method
Publish
(msg interface{}, key []byte, topic string)
golang/adapter/broker/interface.go:4
↓ 4 callers
Method
Execute
(input TransactionDtoInput)
golang/usecase/process_transaction/process_transaction.go:19
↓ 4 callers
Method
IsValid
()
golang/domain/entity/transaction.go:23
↓ 3 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
golang/domain/repository/mock/mock.go:32
↓ 3 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
golang/adapter/broker/mock/mock.go:32
↓ 3 callers
Function
NewProcessTransaction
(repository repository.TransactionRepository, producerInterface broker.ProducerInterface, topic string)
golang/usecase/process_transaction/process_transaction.go:15
↓ 3 callers
Function
NewTransaction
()
golang/domain/entity/transaction.go:19
↓ 3 callers
Method
findOne
(idOrToken: string)
nestjs/src/accounts/accounts.service.ts:21
↓ 3 callers
Method
findOneUsingAccount
(id: string)
nestjs/src/orders/orders.service.ts:49
↓ 2 callers
Function
createEmotionCache
()
nextjs/src/utils/createEmotionCache.tsx:3
↓ 2 callers
Method
findOne
(id: string)
nestjs/src/orders/orders.service.ts:59
↓ 2 callers
Method
publish
(output TransactionDtoOutput, key []byte)
golang/usecase/process_transaction/process_transaction.go:76
↓ 2 callers
Method
rejectTransaction
(transaction *entity.Transaction, invalidTransaction error)
golang/usecase/process_transaction/process_transaction.go:57
↓ 1 callers
Method
Bind
(interface{})
golang/adapter/presenter/interface.go:5
↓ 1 callers
Method
Consume
(msgChan chan *ckafka.Message)
golang/adapter/broker/kafka/consumer.go:17
↓ 1 callers
Method
CreateTransactionRepository
()
golang/adapter/factory/database_repository.go:17
↓ 1 callers
Method
Insert
(id string, account string, amount float64, status string, errorMessage string)
golang/adapter/repository/transaction_repository_db.go:16
↓ 1 callers
Method
IsValid
()
golang/domain/entity/credit_card.go:32
↓ 1 callers
Function
NewKafkaProducer
(configMap *ckafka.ConfigMap, presenter presenter.Presenter)
golang/adapter/broker/kafka/producer.go:13
↓ 1 callers
Function
NewTransactionRepositoryDb
(db *sql.DB)
golang/adapter/repository/transaction_repository_db.go:12
↓ 1 callers
Method
SetCreditCard
(card CreditCard)
golang/domain/entity/transaction.go:33
↓ 1 callers
Method
Show
()
golang/adapter/presenter/interface.go:4
↓ 1 callers
Method
approveTransaction
(input TransactionDtoInput, transaction *entity.Transaction)
golang/usecase/process_transaction/process_transaction.go:38
↓ 1 callers
Function
bootstrap
()
nestjs/src/main.ts:5
↓ 1 callers
Method
create
(createOrderDto: CreateOrderDto)
nestjs/src/orders/orders.service.ts:20
↓ 1 callers
Method
getHello
()
nestjs/src/app.service.ts:5
↓ 1 callers
Method
setBy
(token: string)
nestjs/src/accounts/account-storage/account-storage.service.ts:16
↓ 1 callers
Method
update
(@Param('id') id: string, @Body() updateOrderDto: UpdateOrderDto)
nestjs/src/orders/orders.controller.ts:41
↓ 1 callers
Method
validateMonth
()
golang/domain/entity/credit_card.go:57
↓ 1 callers
Method
validateNumber
()
golang/domain/entity/credit_card.go:49
↓ 1 callers
Method
validateYear
()
golang/domain/entity/credit_card.go:64
Method
Bind
(input interface{})
golang/adapter/presenter/transaction/transaction_kafka.go:18
Method
CreateTransactionRepository
()
golang/domain/factory/repository.go:6
Function
Down
(db *sql.DB, migrationsDir fs.FS)
golang/adapter/repository/fixture/fixture.go:23
Function
Home
()
nextjs/src/pages/index.tsx:3
Method
Insert
Insert mocks base method.
golang/domain/repository/mock/mock.go:37
Method
Insert
Insert indicates an expected call of Insert.
golang/domain/repository/mock/mock.go:45
Function
LoginPage
()
nextjs/src/pages/login.tsx:6
Function
MyApp
(props: MyAppProps)
nextjs/src/pages/_app.tsx:17
Function
Navbar
()
nextjs/src/components/Navbar.tsx:4
Function
NewConsumer
(configMap *ckafka.ConfigMap, topics []string)
golang/adapter/broker/kafka/consumer.go:10
Function
NewMockProducerInterface
NewMockProducerInterface creates a new mock instance.
golang/adapter/broker/mock/mock.go:25
Function
NewMockTransactionRepository
NewMockTransactionRepository creates a new mock instance.
golang/domain/repository/mock/mock.go:25
Function
NewRepositoryDatabaseFactory
(db *sql.DB)
golang/adapter/factory/database_repository.go:13
Function
NewTransactionKafkaPresenter
()
golang/adapter/presenter/transaction/transaction_kafka.go:14
Function
OrderShowPage
(props: any)
nextjs/src/pages/orders/[id].tsx:16
Function
OrdersPage
(props: any)
nextjs/src/pages/orders/index.tsx:13
Method
Publish
(msg interface{}, key []byte, topic string)
golang/adapter/broker/kafka/producer.go:17
Method
Publish
Publish mocks base method.
golang/adapter/broker/mock/mock.go:37
Method
Publish
Publish indicates an expected call of Publish.
golang/adapter/broker/mock/mock.go:45
Method
Show
()
golang/adapter/presenter/transaction/transaction_kafka.go:25
Function
TestCreditCardExpirationMonth
(t *testing.T)
golang/domain/entity/credit_card_test.go:17
Function
TestCreditCardExpirationYear
(t *testing.T)
golang/domain/entity/credit_card_test.go:28
Function
TestCreditCardNumber
(t *testing.T)
golang/domain/entity/credit_card_test.go:9
Function
TestProcessTransaction_ExecuteApprovedTransaction
(t *testing.T)
golang/usecase/process_transaction/process_transaction_test.go:81
Function
TestProcessTransaction_ExecuteInvalidCreditCard
(t *testing.T)
golang/usecase/process_transaction/process_transaction_test.go:13
Function
TestProcessTransaction_ExecuteRejectedTransaction
(t *testing.T)
golang/usecase/process_transaction/process_transaction_test.go:46
Function
TestProducerPublish
(t *testing.T)
golang/adapter/broker/kafka/producer_test.go:12
Function
TestTransactionRepositoryDbInsert
(t *testing.T)
golang/adapter/repository/transaction_repository_db_test.go:11
Function
TestTransaction_IsNotValidWithAmountGreaterThan1000
(t *testing.T)
golang/domain/entity/transaction_test.go:16
Function
TestTransaction_IsNotValidWithAmountLessThan1
(t *testing.T)
golang/domain/entity/transaction_test.go:26
Function
TestTransaction_IsValid
(t *testing.T)
golang/domain/entity/transaction_test.go:8
Function
Up
(migrationsDir fs.FS)
golang/adapter/repository/fixture/fixture.go:12
Method
account
()
nestjs/src/accounts/account-storage/account-storage.service.ts:12
Method
canActivate
(context: ExecutionContext)
nestjs/src/accounts/token.guard.ts:8
Method
constructor
(private readonly appService: AppService)
nestjs/src/app.controller.ts:6
Method
constructor
(private accountStorage: AccountStorageService)
nestjs/src/accounts/token.guard.ts:6
Method
constructor
(private readonly accountsService: AccountsService)
nestjs/src/accounts/accounts.controller.ts:16
Method
constructor
(@InjectModel(Account) private accountModel: typeof Account)
nestjs/src/accounts/accounts.service.ts:11
Method
constructor
(private accountService: AccountsService)
nestjs/src/accounts/account-storage/account-storage.service.ts:10
Method
constructor
(private readonly ordersService: OrdersService)
nestjs/src/orders/orders.controller.ts:23
Method
constructor
( @InjectModel(Order) private orderModel: typeof Order, private accountStorage: AccountStorageServ
nestjs/src/orders/orders.service.ts:12
Method
consumerUpdateStatus
(@Payload() message: KafkaMessage)
nestjs/src/orders/orders.controller.ts:52
Method
create
(@Body() createAccountDto: CreateAccountDto)
nestjs/src/accounts/accounts.controller.ts:19
Method
create
(createAccountDto: CreateAccountDto)
nestjs/src/accounts/accounts.service.ts:13
Method
create
(@Body() createOrderDto: CreateOrderDto)
nestjs/src/orders/orders.controller.ts:26
Function
fetcher
(url: string)
nextjs/src/pages/orders/index.tsx:11
Function
fetcher
(url: string)
nextjs/src/pages/orders/[id].tsx:14
Method
findAll
()
nestjs/src/accounts/accounts.controller.ts:24
Method
findAll
()
nestjs/src/accounts/accounts.service.ts:17
Method
findAll
()
nestjs/src/orders/orders.controller.ts:31
Method
findAll
()
nestjs/src/orders/orders.service.ts:40
Method
findOne
(@Param('id') id: string)
nestjs/src/accounts/accounts.controller.ts:29
Method
findOne
(@Param('id') id: string)
nestjs/src/orders/orders.controller.ts:36
Method
getHello
()
nestjs/src/app.controller.ts:9
Function
getStaticPaths
(context)
nextjs/src/pages/orders/[id].tsx:86
Function
getStaticProps
(context)
nextjs/src/pages/orders/[id].tsx:79
Function
handler
( req: NextApiRequest, res: NextApiResponse<Data> )
nextjs/src/pages/api/hello.ts:8
Function
login
(req: NextApiRequest, res: NextApiResponse)
nextjs/src/pages/api/login.ts:9
Function
main
()
golang/cmd/main.go:17
Function
onSubmit
(event: FormEvent)
nextjs/src/pages/login.tsx:8
Function
ordersList
(req: NextApiRequest, res: NextApiResponse)
nextjs/src/pages/api/orders/index.tsx:8
Function
ordersList
(req: NextApiRequest, res: NextApiResponse)
nextjs/src/pages/api/orders/[id].tsx:8
Method
remove
(@Param('id') id: string)
nestjs/src/accounts/accounts.controller.ts:39
Method
remove
(id: string)
nestjs/src/accounts/accounts.service.ts:40
Method
remove
(@Param('id') id: string)
nestjs/src/orders/orders.controller.ts:47
Method
remove
(id: string)
nestjs/src/orders/orders.service.ts:71
Method
render
()
nextjs/src/pages/_document.tsx:8
next →
1–100 of 103, ranked by callers