MCPcopy Create free account

hub / github.com/devfullcycle/imersao22 / functions

Functions166 in github.com/devfullcycle/imersao22

FunctionNewKafkaProducer
(config *KafkaConfig)
go-gateway/internal/service/kafka.go:60
FunctionNewPendingTransaction
(accountID, invoiceID string, amount float64)
go-gateway/internal/domain/events/pending_transaction.go:9
FunctionNewServer
(accountService *service.AccountService, invoiceService *service.InvoiceService, port string)
go-gateway/internal/web/server/server.go:20
FunctionNewTransactionResult
(invoiceID string, status string)
go-gateway/internal/domain/events/transaction_result.go:10
FunctionRootLayout
({ children, }: { children: React.ReactNode })
next-frontend/src/app/layout.tsx:13
MethodSave
Save persiste uma nova conta no banco de dados Retorna erro se houver falha na inserção
go-gateway/internal/repository/account_repository.go:22
MethodSave
Save salva uma fatura no banco de dados
go-gateway/internal/repository/invoice_repository.go:18
MethodSave
(invoice *Invoice)
go-gateway/internal/domain/repository.go:11
FunctionSelect
({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>)
next-frontend/src/components/ui/select.tsx:9
FunctionSelectContent
({ className, children, position = "popper", ...props }: React.ComponentProps<typeof SelectPrimitive.C
next-frontend/src/components/ui/select.tsx:53
FunctionSelectGroup
({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>)
next-frontend/src/components/ui/select.tsx:15
FunctionSelectItem
({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>)
next-frontend/src/components/ui/select.tsx:101
FunctionSelectLabel
({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>)
next-frontend/src/components/ui/select.tsx:88
FunctionSelectScrollDownButton
({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>)
next-frontend/src/components/ui/select.tsx:156
FunctionSelectScrollUpButton
({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>)
next-frontend/src/components/ui/select.tsx:138
FunctionSelectSeparator
({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>)
next-frontend/src/components/ui/select.tsx:125
FunctionSelectTrigger
({ className, size = "default", children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trig
next-frontend/src/components/ui/select.tsx:27
FunctionSelectValue
({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>)
next-frontend/src/components/ui/select.tsx:21
MethodSendingPendingTransaction
(ctx context.Context, event events.PendingTransaction)
go-gateway/internal/service/kafka.go:75
FunctionStatusBadge
({ status }: StatusBadgeProps)
next-frontend/src/components/StatusBadge.tsx:15
FunctionTextarea
({ className, ...props }: React.ComponentProps<"textarea">)
next-frontend/src/components/ui/textarea.tsx:5
FunctionToAccount
ToAccount converte CreateAccountInput para domain.Account
go-gateway/internal/dto/account.go:27
FunctionToInvoice
(input CreateInvoiceInput, accountID string)
go-gateway/internal/dto/invoice.go:39
MethodUpdateBalance
UpdateBalance atualiza o saldo de uma conta de forma thread-safe O amount pode ser positivo (crédito)
go-gateway/internal/service/account_service.go:43
MethodUpdateBalance
UpdateBalance atualiza o saldo da conta usando SELECT FOR UPDATE para consistência em acessos concorrentes Retorna ErrAccountNotFound se a conta não e
go-gateway/internal/repository/account_repository.go:111
MethodUpdateStatus
UpdateStatus atualiza o status de uma fatura
go-gateway/internal/repository/invoice_repository.go:90
MethodUpdateStatus
(newStatus Status)
go-gateway/internal/domain/invoice.go:76
Methodclose
* This method is triggered on application shutdown.
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:333
Methodconstructor
(private readonly appService: AppService)
nestjs-anti-fraud/src/app.controller.ts:6
Methodconstructor
(protected readonly options: KafkaServerOptions)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:65
Methodconstructor
(args: ConfluentKafkaContextArgs)
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:16
Methodconstructor
(private readonly invoicesService: InvoicesService)
nestjs-anti-fraud/src/invoices/invoices.controller.ts:7
Methodconstructor
(private prisma: PrismaService)
nestjs-anti-fraud/src/invoices/invoices.service.ts:7
Methodconstructor
(private fraudService: FraudService)
nestjs-anti-fraud/src/invoices/invoices.consumer.ts:15
Methodconstructor
(private kafkaInst: kafkaLib.KafkaJS.Kafka)
nestjs-anti-fraud/src/invoices/events/publish-processed-invoice.listener.ts:11
Methodconstructor
( readonly invoice: Invoice, readonly fraudResult: { hasFraud: boolean; reason?: FraudReas
nestjs-anti-fraud/src/invoices/events/invoice-processed.event.ts:4
Methodconstructor
( private prismaService: PrismaService, //private configService: ConfigService, private fraudAggre
nestjs-anti-fraud/src/invoices/fraud/fraud.service.ts:12
Methodconstructor
( private prisma: PrismaService, private configService: ConfigService, )
nestjs-anti-fraud/src/invoices/fraud/specifications/frequent-high-value.specification.ts:13
Methodconstructor
( private prisma: PrismaService, private configService: ConfigService, )
nestjs-anti-fraud/src/invoices/fraud/specifications/unusual-amount.specification.ts:13
Methodconstructor
( @Inject('FRAUD_SPECIFICATIONS') private specifications: IFraudSpecification[], )
nestjs-anti-fraud/src/invoices/fraud/specifications/fraud-aggregate.specification.ts:10
FunctioncreateInvoiceAction
(formData: FormData)
next-frontend/src/app/invoices/create/create-invoice-action.ts:7
MethoddetectFraud
(context: FraudSpecificationContext)
nestjs-anti-fraud/src/invoices/fraud/specifications/suspicious-account.specification.ts:11
MethoddetectFraud
( context: FraudSpecificationContext, )
nestjs-anti-fraud/src/invoices/fraud/specifications/frequent-high-value.specification.ts:18
MethoddetectFraud
( context: FraudSpecificationContext, )
nestjs-anti-fraud/src/invoices/fraud/specifications/unusual-amount.specification.ts:18
MethoddetectFraud
( context: FraudSpecificationContext, )
nestjs-anti-fraud/src/invoices/fraud/specifications/fraud-aggregate.specification.ts:15
MethodfindAll
(@Query() filter: FindAllInvoiceDto)
nestjs-anti-fraud/src/invoices/invoices.controller.ts:10
MethodfindAll
(filter?: { withFraud?: boolean; accountId?: string })
nestjs-anti-fraud/src/invoices/invoices.service.ts:9
MethodfindOne
(@Param('id') id: string)
nestjs-anti-fraud/src/invoices/invoices.controller.ts:18
MethodfindOne
(id: string)
nestjs-anti-fraud/src/invoices/invoices.service.ts:21
MethodgetConsumer
* Returns the Kafka consumer reference.
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:40
MethodgetHeartbeat
* Returns the Kafka heartbeat callback.
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:46
MethodgetHello
()
nestjs-anti-fraud/src/app.controller.ts:9
MethodgetMessage
* Returns the reference to the original message.
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:22
MethodgetPartition
* Returns the partition.
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:28
MethodgetProducer
* Returns the Kafka producer reference,
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:52
MethodgetTopic
* Returns the name of the topic.
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:34
Methodhandle
(event: InvoiceProcessedEvent)
nestjs-anti-fraud/src/invoices/events/publish-processed-invoice.listener.ts:19
MethodhandlePendingInvoices
(@Payload() message: PendingInvoicesMessage)
nestjs-anti-fraud/src/invoices/invoices.consumer.ts:18
FunctionloginAction
(formData: FormData)
next-frontend/src/app/login/AuthForm.tsx:9
FunctionlogoutAction
()
next-frontend/src/components/header.tsx:7
Functionmain
()
go-gateway/cmd/app/main.go:25
Functionmiddleware
(request: NextRequest)
next-frontend/src/middleware.ts:4
Methodon
(event: any, callback: any)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:355
MethodonModuleInit
()
nestjs-anti-fraud/src/prisma/prisma.service.ts:6
MethodonModuleInit
()
nestjs-anti-fraud/src/invoices/events/publish-processed-invoice.listener.ts:13
Methodunwrap
* Returns an instance of the underlying server/broker instance, * or a group of servers if there are more than one.
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:362
← previous101–166 of 166, ranked by callers