MCPcopy Create free account

hub / github.com/devfullcycle/imersao22 / functions

Functions166 in github.com/devfullcycle/imersao22

↓ 22 callersFunctioncn
(...inputs: ClassValue[])
next-frontend/src/lib/utils.ts:4
↓ 10 callersFunctiongetEnv
getEnv retorna variável de ambiente ou valor padrão se não definida
go-gateway/cmd/app/main.go:18
↓ 8 callersMethodFindByAPIKey
(apiKey string)
go-gateway/internal/domain/repository.go:5
↓ 7 callersMethodGet
Get processa GET /accounts Requer X-API-Key no header
go-gateway/internal/web/handlers/account_handler.go:44
↓ 5 callersMethodClose
()
go-gateway/internal/service/kafka.go:16
↓ 4 callersMethodFindByID
(id string)
go-gateway/internal/domain/repository.go:6
↓ 3 callersMethodUpdateBalance
(account *Account)
go-gateway/internal/domain/repository.go:7
↓ 2 callersMethodSave
(account *Account)
go-gateway/internal/domain/repository.go:4
↓ 2 callersMethodUpdateStatus
(invoice *Invoice)
go-gateway/internal/domain/repository.go:14
↓ 2 callersMethodWithTopic
WithTopic cria uma nova configuração com um tópico diferente
go-gateway/internal/service/kafka.go:30
↓ 2 callersMethoddetectFraud
( context: FraudSpecificationContext, )
nestjs-anti-fraud/src/invoices/fraud/specifications/fraud-specification.interface.ts:16
↓ 2 callersMethodlisten
* This method is triggered when you run "app.listen()".
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:83
↓ 1 callersMethodAddBalance
AddBalance modifica o saldo da conta de forma thread-safe
go-gateway/internal/domain/account.go:48
↓ 1 callersMethodClose
()
go-gateway/internal/service/kafka.go:99
↓ 1 callersMethodClose
()
go-gateway/internal/service/kafka.go:167
↓ 1 callersMethodConfigureRoutes
()
go-gateway/internal/web/server/server.go:29
↓ 1 callersMethodConsume
(ctx context.Context)
go-gateway/internal/service/kafka.go:133
↓ 1 callersMethodCreateAccount
CreateAccount cria uma nova conta e valida duplicidade de API Key Retorna ErrDuplicatedAPIKey se a chave já existir
go-gateway/internal/service/account_service.go:20
↓ 1 callersMethodFindByAccountID
(accountID string)
go-gateway/internal/domain/repository.go:13
↓ 1 callersMethodListByAccount
(accountID string)
go-gateway/internal/service/invoice_service.go:91
↓ 1 callersMethodListByAccountAPIKey
ListByAccountAPIKey lista as faturas de uma conta através de uma API Key
go-gateway/internal/service/invoice_service.go:105
↓ 1 callersMethodProcess
()
go-gateway/internal/domain/invoice.go:58
↓ 1 callersMethodProcessTransactionResult
ProcessTransactionResult processa o resultado de uma transação após análise de fraude
go-gateway/internal/service/invoice_service.go:115
↓ 1 callersMethodSendingPendingTransaction
(ctx context.Context, event events.PendingTransaction)
go-gateway/internal/service/kafka.go:15
↓ 1 callersMethodStart
()
go-gateway/internal/web/server/server.go:45
↓ 1 callersMethodToDomainStatus
()
go-gateway/internal/domain/events/transaction_result.go:17
↓ 1 callersMethodassignCorrelationIdHeader
( correlationId: string, outgoingMessage: Message, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:267
↓ 1 callersMethodassignErrorHeader
( outgoingResponse: OutgoingResponse, outgoingMessage: Message, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:286
↓ 1 callersMethodassignIsDisposedHeader
( outgoingResponse: OutgoingResponse, outgoingMessage: Message, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:256
↓ 1 callersMethodassignReplyPartition
( replyPartition: string, outgoingMessage: Message, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:276
↓ 1 callersMethodbindEvents
(consumer: kafkaLib.KafkaJS.Consumer)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:126
↓ 1 callersFunctionbootstrap
()
nestjs-anti-fraud/src/main.ts:4
↓ 1 callersFunctionbootstrap
()
nestjs-anti-fraud/src/repl.ts:4
↓ 1 callersFunctionbootstrap
()
nestjs-anti-fraud/src/cmd/kafka.cmd.ts:5
↓ 1 callersMethodcombineStreamsAndThrowIfRetriable
( response$: Observable<any>, replayStream$: ReplaySubject<unknown>, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:302
↓ 1 callersMethodcreateClient
()
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:96
↓ 1 callersFunctiongenerateAPIKey
generateAPIKey gera uma chave API segura usando crypto/rand
go-gateway/internal/domain/account.go:25
↓ 1 callersMethodgetHello
()
nestjs-anti-fraud/src/app.service.ts:5
↓ 1 callersFunctiongetInvoice
(id: string)
next-frontend/src/app/invoices/[id]/page.tsx:9
↓ 1 callersFunctiongetInvoices
()
next-frontend/src/app/invoices/invoice-list.tsx:9
↓ 1 callersMethodgetMessageHandler
()
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:151
↓ 1 callersMethodgetPublisher
( replyTopic: string, replyPartition: string, correlationId: string, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:227
↓ 1 callersMethodhandleEvent
( pattern: string, packet: ReadPacket, context: ConfluentKafkaContext, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:211
↓ 1 callersMethodhandleMessage
(payload: EachMessagePayload)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:157
↓ 1 callersMethodinitializeDeserializer
(deserializer?: Deserializer)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:350
↓ 1 callersMethodinitializeSerializer
(serializer?: Serializer)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:345
↓ 1 callersMethodprocessInvoice
(processInvoiceFraudDto: ProcessInvoiceFraudDto)
nestjs-anti-fraud/src/invoices/fraud/fraud.service.ts:19
↓ 1 callersMethodsendMessage
( message: OutgoingResponse, replyTopic: string, replyPartition: string, correlationId: string
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:236
↓ 1 callersMethodstart
(callback?: () => void)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:104
FunctionAlert
({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>)
next-frontend/src/components/ui/alert.tsx:22
FunctionAlertDescription
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/alert.tsx:50
FunctionAlertTitle
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/alert.tsx:37
FunctionAuthForm
()
next-frontend/src/app/login/AuthForm.tsx:30
MethodAuthenticate
(next http.Handler)
go-gateway/internal/web/middleware/auth_middleware.go:20
FunctionBadge
({ className, variant, asChild = false, ...props }: React.ComponentProps<"span"> & VariantProps<type
next-frontend/src/components/ui/badge.tsx:28
FunctionButton
({ className, variant, size, asChild = false, ...props }: React.ComponentProps<"button"> & Variant
next-frontend/src/components/ui/button.tsx:38
FunctionCard
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:5
FunctionCardAction
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:51
FunctionCardContent
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:64
FunctionCardDescription
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:41
FunctionCardFooter
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:74
FunctionCardHeader
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:18
FunctionCardTitle
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:31
MethodClose
()
go-gateway/internal/service/kafka.go:21
MethodConsume
(ctx context.Context)
go-gateway/internal/service/kafka.go:20
MethodCreate
(input dto.CreateInvoiceInput)
go-gateway/internal/service/invoice_service.go:29
MethodCreate
Create processa POST /accounts Retorna 201 Created ou erro 400/500
go-gateway/internal/web/handlers/account_handler.go:23
MethodCreate
Request autenticação via X-API-KEY Endpoint: /invoice Method: POST
go-gateway/internal/web/handlers/invoice_handler.go:26
FunctionCreateInvoicePage
()
next-frontend/src/app/invoices/create/page.tsx:4
MethodFindByAPIKey
FindByAPIKey busca uma conta pelo API Key
go-gateway/internal/service/account_service.go:59
MethodFindByAPIKey
FindByAPIKey busca uma conta pelo API Key Retorna ErrAccountNotFound se não encontrada
go-gateway/internal/repository/account_repository.go:49
MethodFindByAccountID
FindByAccountID busca todas as faturas de um determinado accountID
go-gateway/internal/repository/invoice_repository.go:61
MethodFindByID
FindByID busca uma conta pelo ID
go-gateway/internal/service/account_service.go:69
MethodFindByID
FindByID busca uma conta pelo ID Retorna ErrAccountNotFound se não encontrada
go-gateway/internal/repository/account_repository.go:80
MethodFindByID
FindByID busca uma fatura pelo ID
go-gateway/internal/repository/invoice_repository.go:31
MethodFindByID
(id string)
go-gateway/internal/domain/repository.go:12
FunctionFromAccount
FromAccount converte domain.Account para AccountOutput
go-gateway/internal/dto/account.go:32
FunctionFromInvoice
(invoice *domain.Invoice)
go-gateway/internal/dto/invoice.go:57
MethodGetByID
(id, apiKey string)
go-gateway/internal/service/invoice_service.go:73
MethodGetByID
Endpoint: /invoice/{id} Method: GET
go-gateway/internal/web/handlers/invoice_handler.go:49
FunctionHeader
()
next-frontend/src/components/header.tsx:14
FunctionHomePage
()
next-frontend/src/app/page.tsx:3
FunctionInput
({ className, type, ...props }: React.ComponentProps<"input">)
next-frontend/src/components/ui/input.tsx:5
FunctionInvoiceDetailsPage
({ params, }: { params: Promise<{ id: string }>; })
next-frontend/src/app/invoices/[id]/page.tsx:24
FunctionInvoiceForm
()
next-frontend/src/app/invoices/create/InvoiceForm.tsx:9
FunctionInvoiceList
()
next-frontend/src/app/invoices/invoice-list.tsx:24
FunctionInvoiceListPage
()
next-frontend/src/app/invoices/page.tsx:3
MethodListByAccount
Endpoint: /invoice Method: GET
go-gateway/internal/web/handlers/invoice_handler.go:86
FunctionLoginPage
()
next-frontend/src/app/login/page.tsx:6
FunctionNewAccount
NewAccount cria uma conta com ID único, API Key segura e timestamps iniciais
go-gateway/internal/domain/account.go:33
FunctionNewAccountHandler
NewAccountHandler cria um novo handler de contas
go-gateway/internal/web/handlers/account_handler.go:17
FunctionNewAccountRepository
NewAccountRepository cria um novo repositório de contas
go-gateway/internal/repository/account_repository.go:16
FunctionNewAccountService
NewAccountService cria um novo serviço de contas
go-gateway/internal/service/account_service.go:14
FunctionNewAuthMiddleware
(accountService *service.AccountService)
go-gateway/internal/web/middleware/auth_middleware.go:14
FunctionNewInvoice
(accountID string, amount float64, description string, paymentType string, card CreditCard)
go-gateway/internal/domain/invoice.go:38
FunctionNewInvoiceHandler
(service *service.InvoiceService)
go-gateway/internal/web/handlers/invoice_handler.go:17
FunctionNewInvoiceRepository
(db *sql.DB)
go-gateway/internal/repository/invoice_repository.go:13
FunctionNewInvoiceService
( invoiceRepository domain.InvoiceRepository, accountService AccountService, kafkaProducer KafkaProducerInt
go-gateway/internal/service/invoice_service.go:17
FunctionNewKafkaConfig
()
go-gateway/internal/service/kafka.go:37
FunctionNewKafkaConsumer
(config *KafkaConfig, groupID string, invoiceService *InvoiceService)
go-gateway/internal/service/kafka.go:112
next →1–100 of 166, ranked by callers