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
↓ 22 callers
Function
cn
(...inputs: ClassValue[])
next-frontend/src/lib/utils.ts:4
↓ 10 callers
Function
getEnv
getEnv retorna variável de ambiente ou valor padrão se não definida
go-gateway/cmd/app/main.go:18
↓ 8 callers
Method
FindByAPIKey
(apiKey string)
go-gateway/internal/domain/repository.go:5
↓ 7 callers
Method
Get
Get processa GET /accounts Requer X-API-Key no header
go-gateway/internal/web/handlers/account_handler.go:44
↓ 5 callers
Method
Close
()
go-gateway/internal/service/kafka.go:16
↓ 4 callers
Method
FindByID
(id string)
go-gateway/internal/domain/repository.go:6
↓ 3 callers
Method
UpdateBalance
(account *Account)
go-gateway/internal/domain/repository.go:7
↓ 2 callers
Method
Save
(account *Account)
go-gateway/internal/domain/repository.go:4
↓ 2 callers
Method
UpdateStatus
(invoice *Invoice)
go-gateway/internal/domain/repository.go:14
↓ 2 callers
Method
WithTopic
WithTopic cria uma nova configuração com um tópico diferente
go-gateway/internal/service/kafka.go:30
↓ 2 callers
Method
detectFraud
( context: FraudSpecificationContext, )
nestjs-anti-fraud/src/invoices/fraud/specifications/fraud-specification.interface.ts:16
↓ 2 callers
Method
listen
* This method is triggered when you run "app.listen()".
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:83
↓ 1 callers
Method
AddBalance
AddBalance modifica o saldo da conta de forma thread-safe
go-gateway/internal/domain/account.go:48
↓ 1 callers
Method
Close
()
go-gateway/internal/service/kafka.go:99
↓ 1 callers
Method
Close
()
go-gateway/internal/service/kafka.go:167
↓ 1 callers
Method
ConfigureRoutes
()
go-gateway/internal/web/server/server.go:29
↓ 1 callers
Method
Consume
(ctx context.Context)
go-gateway/internal/service/kafka.go:133
↓ 1 callers
Method
CreateAccount
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 callers
Method
FindByAccountID
(accountID string)
go-gateway/internal/domain/repository.go:13
↓ 1 callers
Method
ListByAccount
(accountID string)
go-gateway/internal/service/invoice_service.go:91
↓ 1 callers
Method
ListByAccountAPIKey
ListByAccountAPIKey lista as faturas de uma conta através de uma API Key
go-gateway/internal/service/invoice_service.go:105
↓ 1 callers
Method
Process
()
go-gateway/internal/domain/invoice.go:58
↓ 1 callers
Method
ProcessTransactionResult
ProcessTransactionResult processa o resultado de uma transação após análise de fraude
go-gateway/internal/service/invoice_service.go:115
↓ 1 callers
Method
SendingPendingTransaction
(ctx context.Context, event events.PendingTransaction)
go-gateway/internal/service/kafka.go:15
↓ 1 callers
Method
Start
()
go-gateway/internal/web/server/server.go:45
↓ 1 callers
Method
ToDomainStatus
()
go-gateway/internal/domain/events/transaction_result.go:17
↓ 1 callers
Method
assignCorrelationIdHeader
( correlationId: string, outgoingMessage: Message, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:267
↓ 1 callers
Method
assignErrorHeader
( outgoingResponse: OutgoingResponse, outgoingMessage: Message, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:286
↓ 1 callers
Method
assignIsDisposedHeader
( outgoingResponse: OutgoingResponse, outgoingMessage: Message, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:256
↓ 1 callers
Method
assignReplyPartition
( replyPartition: string, outgoingMessage: Message, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:276
↓ 1 callers
Method
bindEvents
(consumer: kafkaLib.KafkaJS.Consumer)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:126
↓ 1 callers
Function
bootstrap
()
nestjs-anti-fraud/src/main.ts:4
↓ 1 callers
Function
bootstrap
()
nestjs-anti-fraud/src/repl.ts:4
↓ 1 callers
Function
bootstrap
()
nestjs-anti-fraud/src/cmd/kafka.cmd.ts:5
↓ 1 callers
Method
combineStreamsAndThrowIfRetriable
( response$: Observable<any>, replayStream$: ReplaySubject<unknown>, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:302
↓ 1 callers
Method
createClient
()
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:96
↓ 1 callers
Function
generateAPIKey
generateAPIKey gera uma chave API segura usando crypto/rand
go-gateway/internal/domain/account.go:25
↓ 1 callers
Method
getHello
()
nestjs-anti-fraud/src/app.service.ts:5
↓ 1 callers
Function
getInvoice
(id: string)
next-frontend/src/app/invoices/[id]/page.tsx:9
↓ 1 callers
Function
getInvoices
()
next-frontend/src/app/invoices/invoice-list.tsx:9
↓ 1 callers
Method
getMessageHandler
()
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:151
↓ 1 callers
Method
getPublisher
( replyTopic: string, replyPartition: string, correlationId: string, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:227
↓ 1 callers
Method
handleEvent
( pattern: string, packet: ReadPacket, context: ConfluentKafkaContext, )
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:211
↓ 1 callers
Method
handleMessage
(payload: EachMessagePayload)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:157
↓ 1 callers
Method
initializeDeserializer
(deserializer?: Deserializer)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:350
↓ 1 callers
Method
initializeSerializer
(serializer?: Serializer)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:345
↓ 1 callers
Method
processInvoice
(processInvoiceFraudDto: ProcessInvoiceFraudDto)
nestjs-anti-fraud/src/invoices/fraud/fraud.service.ts:19
↓ 1 callers
Method
sendMessage
( message: OutgoingResponse, replyTopic: string, replyPartition: string, correlationId: string
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:236
↓ 1 callers
Method
start
(callback?: () => void)
nestjs-anti-fraud/src/kafka/confluent-kafka-server.ts:104
Function
Alert
({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>)
next-frontend/src/components/ui/alert.tsx:22
Function
AlertDescription
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/alert.tsx:50
Function
AlertTitle
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/alert.tsx:37
Function
AuthForm
()
next-frontend/src/app/login/AuthForm.tsx:30
Method
Authenticate
(next http.Handler)
go-gateway/internal/web/middleware/auth_middleware.go:20
Function
Badge
({ className, variant, asChild = false, ...props }: React.ComponentProps<"span"> & VariantProps<type
next-frontend/src/components/ui/badge.tsx:28
Function
Button
({ className, variant, size, asChild = false, ...props }: React.ComponentProps<"button"> & Variant
next-frontend/src/components/ui/button.tsx:38
Function
Card
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:5
Function
CardAction
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:51
Function
CardContent
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:64
Function
CardDescription
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:41
Function
CardFooter
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:74
Function
CardHeader
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:18
Function
CardTitle
({ className, ...props }: React.ComponentProps<"div">)
next-frontend/src/components/ui/card.tsx:31
Method
Close
()
go-gateway/internal/service/kafka.go:21
Method
Consume
(ctx context.Context)
go-gateway/internal/service/kafka.go:20
Method
Create
(input dto.CreateInvoiceInput)
go-gateway/internal/service/invoice_service.go:29
Method
Create
Create processa POST /accounts Retorna 201 Created ou erro 400/500
go-gateway/internal/web/handlers/account_handler.go:23
Method
Create
Request autenticação via X-API-KEY Endpoint: /invoice Method: POST
go-gateway/internal/web/handlers/invoice_handler.go:26
Function
CreateInvoicePage
()
next-frontend/src/app/invoices/create/page.tsx:4
Method
FindByAPIKey
FindByAPIKey busca uma conta pelo API Key
go-gateway/internal/service/account_service.go:59
Method
FindByAPIKey
FindByAPIKey busca uma conta pelo API Key Retorna ErrAccountNotFound se não encontrada
go-gateway/internal/repository/account_repository.go:49
Method
FindByAccountID
FindByAccountID busca todas as faturas de um determinado accountID
go-gateway/internal/repository/invoice_repository.go:61
Method
FindByID
FindByID busca uma conta pelo ID
go-gateway/internal/service/account_service.go:69
Method
FindByID
FindByID busca uma conta pelo ID Retorna ErrAccountNotFound se não encontrada
go-gateway/internal/repository/account_repository.go:80
Method
FindByID
FindByID busca uma fatura pelo ID
go-gateway/internal/repository/invoice_repository.go:31
Method
FindByID
(id string)
go-gateway/internal/domain/repository.go:12
Function
FromAccount
FromAccount converte domain.Account para AccountOutput
go-gateway/internal/dto/account.go:32
Function
FromInvoice
(invoice *domain.Invoice)
go-gateway/internal/dto/invoice.go:57
Method
GetByID
(id, apiKey string)
go-gateway/internal/service/invoice_service.go:73
Method
GetByID
Endpoint: /invoice/{id} Method: GET
go-gateway/internal/web/handlers/invoice_handler.go:49
Function
Header
()
next-frontend/src/components/header.tsx:14
Function
HomePage
()
next-frontend/src/app/page.tsx:3
Function
Input
({ className, type, ...props }: React.ComponentProps<"input">)
next-frontend/src/components/ui/input.tsx:5
Function
InvoiceDetailsPage
({ params, }: { params: Promise<{ id: string }>; })
next-frontend/src/app/invoices/[id]/page.tsx:24
Function
InvoiceForm
()
next-frontend/src/app/invoices/create/InvoiceForm.tsx:9
Function
InvoiceList
()
next-frontend/src/app/invoices/invoice-list.tsx:24
Function
InvoiceListPage
()
next-frontend/src/app/invoices/page.tsx:3
Method
ListByAccount
Endpoint: /invoice Method: GET
go-gateway/internal/web/handlers/invoice_handler.go:86
Function
LoginPage
()
next-frontend/src/app/login/page.tsx:6
Function
NewAccount
NewAccount cria uma conta com ID único, API Key segura e timestamps iniciais
go-gateway/internal/domain/account.go:33
Function
NewAccountHandler
NewAccountHandler cria um novo handler de contas
go-gateway/internal/web/handlers/account_handler.go:17
Function
NewAccountRepository
NewAccountRepository cria um novo repositório de contas
go-gateway/internal/repository/account_repository.go:16
Function
NewAccountService
NewAccountService cria um novo serviço de contas
go-gateway/internal/service/account_service.go:14
Function
NewAuthMiddleware
(accountService *service.AccountService)
go-gateway/internal/web/middleware/auth_middleware.go:14
Function
NewInvoice
(accountID string, amount float64, description string, paymentType string, card CreditCard)
go-gateway/internal/domain/invoice.go:38
Function
NewInvoiceHandler
(service *service.InvoiceService)
go-gateway/internal/web/handlers/invoice_handler.go:17
Function
NewInvoiceRepository
(db *sql.DB)
go-gateway/internal/repository/invoice_repository.go:13
Function
NewInvoiceService
( invoiceRepository domain.InvoiceRepository, accountService AccountService, kafkaProducer KafkaProducerInt
go-gateway/internal/service/invoice_service.go:17
Function
NewKafkaConfig
()
go-gateway/internal/service/kafka.go:37
Function
NewKafkaConsumer
(config *KafkaConfig, groupID string, invoiceService *InvoiceService)
go-gateway/internal/service/kafka.go:112
next →
1–100 of 166, ranked by callers