Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/devfullcycle/imersao22
/ functions
Functions
166 in github.com/devfullcycle/imersao22
⨍
Functions
166
◇
Types & classes
67
Function
NewKafkaProducer
(config *KafkaConfig)
go-gateway/internal/service/kafka.go:60
Function
NewPendingTransaction
(accountID, invoiceID string, amount float64)
go-gateway/internal/domain/events/pending_transaction.go:9
Function
NewServer
(accountService *service.AccountService, invoiceService *service.InvoiceService, port string)
go-gateway/internal/web/server/server.go:20
Function
NewTransactionResult
(invoiceID string, status string)
go-gateway/internal/domain/events/transaction_result.go:10
Function
RootLayout
({ children, }: { children: React.ReactNode })
next-frontend/src/app/layout.tsx:13
Method
Save
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
Method
Save
Save salva uma fatura no banco de dados
go-gateway/internal/repository/invoice_repository.go:18
Method
Save
(invoice *Invoice)
go-gateway/internal/domain/repository.go:11
Function
Select
({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>)
next-frontend/src/components/ui/select.tsx:9
Function
SelectContent
({ className, children, position = "popper", ...props }: React.ComponentProps<typeof SelectPrimitive.C
next-frontend/src/components/ui/select.tsx:53
Function
SelectGroup
({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>)
next-frontend/src/components/ui/select.tsx:15
Function
SelectItem
({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>)
next-frontend/src/components/ui/select.tsx:101
Function
SelectLabel
({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>)
next-frontend/src/components/ui/select.tsx:88
Function
SelectScrollDownButton
({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>)
next-frontend/src/components/ui/select.tsx:156
Function
SelectScrollUpButton
({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>)
next-frontend/src/components/ui/select.tsx:138
Function
SelectSeparator
({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>)
next-frontend/src/components/ui/select.tsx:125
Function
SelectTrigger
({ className, size = "default", children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trig
next-frontend/src/components/ui/select.tsx:27
Function
SelectValue
({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>)
next-frontend/src/components/ui/select.tsx:21
Method
SendingPendingTransaction
(ctx context.Context, event events.PendingTransaction)
go-gateway/internal/service/kafka.go:75
Function
StatusBadge
({ status }: StatusBadgeProps)
next-frontend/src/components/StatusBadge.tsx:15
Function
Textarea
({ className, ...props }: React.ComponentProps<"textarea">)
next-frontend/src/components/ui/textarea.tsx:5
Function
ToAccount
ToAccount converte CreateAccountInput para domain.Account
go-gateway/internal/dto/account.go:27
Function
ToInvoice
(input CreateInvoiceInput, accountID string)
go-gateway/internal/dto/invoice.go:39
Method
UpdateBalance
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
Method
UpdateBalance
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
Method
UpdateStatus
UpdateStatus atualiza o status de uma fatura
go-gateway/internal/repository/invoice_repository.go:90
Method
UpdateStatus
(newStatus Status)
go-gateway/internal/domain/invoice.go:76
Method
close
* This method is triggered on application shutdown.
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:333
Method
constructor
(private readonly appService: AppService)
nestjs-anti-fraud/src/app.controller.ts:6
Method
constructor
(protected readonly options: KafkaServerOptions)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:65
Method
constructor
(args: ConfluentKafkaContextArgs)
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:16
Method
constructor
(private readonly invoicesService: InvoicesService)
nestjs-anti-fraud/src/invoices/invoices.controller.ts:7
Method
constructor
(private prisma: PrismaService)
nestjs-anti-fraud/src/invoices/invoices.service.ts:7
Method
constructor
(private fraudService: FraudService)
nestjs-anti-fraud/src/invoices/invoices.consumer.ts:15
Method
constructor
(private kafkaInst: kafkaLib.KafkaJS.Kafka)
nestjs-anti-fraud/src/invoices/events/publish-processed-invoice.listener.ts:11
Method
constructor
( readonly invoice: Invoice, readonly fraudResult: { hasFraud: boolean; reason?: FraudReas
nestjs-anti-fraud/src/invoices/events/invoice-processed.event.ts:4
Method
constructor
( private prismaService: PrismaService, //private configService: ConfigService, private fraudAggre
nestjs-anti-fraud/src/invoices/fraud/fraud.service.ts:12
Method
constructor
( private prisma: PrismaService, private configService: ConfigService, )
nestjs-anti-fraud/src/invoices/fraud/specifications/frequent-high-value.specification.ts:13
Method
constructor
( private prisma: PrismaService, private configService: ConfigService, )
nestjs-anti-fraud/src/invoices/fraud/specifications/unusual-amount.specification.ts:13
Method
constructor
( @Inject('FRAUD_SPECIFICATIONS') private specifications: IFraudSpecification[], )
nestjs-anti-fraud/src/invoices/fraud/specifications/fraud-aggregate.specification.ts:10
Function
createInvoiceAction
(formData: FormData)
next-frontend/src/app/invoices/create/create-invoice-action.ts:7
Method
detectFraud
(context: FraudSpecificationContext)
nestjs-anti-fraud/src/invoices/fraud/specifications/suspicious-account.specification.ts:11
Method
detectFraud
( context: FraudSpecificationContext, )
nestjs-anti-fraud/src/invoices/fraud/specifications/frequent-high-value.specification.ts:18
Method
detectFraud
( context: FraudSpecificationContext, )
nestjs-anti-fraud/src/invoices/fraud/specifications/unusual-amount.specification.ts:18
Method
detectFraud
( context: FraudSpecificationContext, )
nestjs-anti-fraud/src/invoices/fraud/specifications/fraud-aggregate.specification.ts:15
Method
findAll
(@Query() filter: FindAllInvoiceDto)
nestjs-anti-fraud/src/invoices/invoices.controller.ts:10
Method
findAll
(filter?: { withFraud?: boolean; accountId?: string })
nestjs-anti-fraud/src/invoices/invoices.service.ts:9
Method
findOne
(@Param('id') id: string)
nestjs-anti-fraud/src/invoices/invoices.controller.ts:18
Method
findOne
(id: string)
nestjs-anti-fraud/src/invoices/invoices.service.ts:21
Method
getConsumer
* Returns the Kafka consumer reference.
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:40
Method
getHeartbeat
* Returns the Kafka heartbeat callback.
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:46
Method
getHello
()
nestjs-anti-fraud/src/app.controller.ts:9
Method
getMessage
* Returns the reference to the original message.
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:22
Method
getPartition
* Returns the partition.
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:28
Method
getProducer
* Returns the Kafka producer reference,
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:52
Method
getTopic
* Returns the name of the topic.
nestjs-anti-fraud/src/kafka/confluent-kafka-context.ts:34
Method
handle
(event: InvoiceProcessedEvent)
nestjs-anti-fraud/src/invoices/events/publish-processed-invoice.listener.ts:19
Method
handlePendingInvoices
(@Payload() message: PendingInvoicesMessage)
nestjs-anti-fraud/src/invoices/invoices.consumer.ts:18
Function
loginAction
(formData: FormData)
next-frontend/src/app/login/AuthForm.tsx:9
Function
logoutAction
()
next-frontend/src/components/header.tsx:7
Function
main
()
go-gateway/cmd/app/main.go:25
Function
middleware
(request: NextRequest)
next-frontend/src/middleware.ts:4
Method
on
(event: any, callback: any)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:355
Method
onModuleInit
()
nestjs-anti-fraud/src/prisma/prisma.service.ts:6
Method
onModuleInit
()
nestjs-anti-fraud/src/invoices/events/publish-processed-invoice.listener.ts:13
Method
unwrap
* 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
← previous
101–166 of 166, ranked by callers