MCPcopy Create free account

hub / github.com/codeedu/imersao-fsfc2 / functions

Functions49 in github.com/codeedu/imersao-fsfc2

↓ 1 callersMethodConsume
Consume consumes all message pulled from apache kafka and sent it to message channel
simulator/infra/kafka/consumer.go:25
↓ 1 callersMethodExportJsonPositions
ExportJsonPositions generates a slice of string in Json using PartialRoutePosition struct
simulator/application/route/route.go:68
↓ 1 callersMethodLoadPositions
LoadPositions loads from a .txt file all positions (lat and long) to the Position attribute of the struct
simulator/application/route/route.go:39
↓ 1 callersMethodaddRoute
( id: string, routeOptions: { currentMarkerOptions: google.maps.ReadonlyMarkerOptions; end
react-frontend/src/util/map.ts:78
↓ 1 callersFunctionbootstrap
()
nest-api/src/main.ts:5
↓ 1 callersMethodcalculateRoute
()
react-frontend/src/util/map.ts:33
↓ 1 callersMethodcreate
(createRouteDto: CreateRouteDto)
nest-api/src/routes/routes.service.ts:14
↓ 1 callersMethoddelete
()
react-frontend/src/util/map.ts:54
↓ 1 callersMethodfitBounds
()
react-frontend/src/util/map.ts:98
↓ 1 callersFunctiongetCurrentPosition
( options?: PositionOptions )
react-frontend/src/util/geolocation.ts:1
↓ 1 callersMethodgetHello
()
nest-api/src/app.service.ts:5
↓ 1 callersFunctionmakeCarIcon
(color: string)
react-frontend/src/util/map.ts:111
↓ 1 callersFunctionmakeMarkerIcon
(color: string)
react-frontend/src/util/map.ts:121
↓ 1 callersMethodmoveCurrentMarker
(id: string, position: google.maps.LatLngLiteral)
react-frontend/src/util/map.ts:68
↓ 1 callersMethodremoveRoute
(id: string)
react-frontend/src/util/map.ts:72
↓ 1 callersFunctionreportWebVitals
(onPerfEntry?: ReportHandler)
react-frontend/src/reportWebVitals.ts:3
↓ 1 callersMethodsendPosition
(data: { clientId: string; routeId: string; position: [number, number]; finished: boolean; }
nest-api/src/routes/routes.gateway.ts:44
FunctionApp
()
react-frontend/src/App.tsx:6
FunctionMapping
()
react-frontend/src/components/Mapping.tsx:55
FunctionNavbar
()
react-frontend/src/components/Navbar.tsx:5
FunctionNewKafkaConsumer
NewKafkaConsumer creates a new KafkaConsumer struct with its message channel as dependency
simulator/infra/kafka/consumer.go:18
FunctionNewKafkaProducer
NewKafkaProducer creates a ready to go kafka.Producer instance
simulator/infra/kafka/producer.go:11
FunctionNewRoute
NewRoute creates a *Route struct
simulator/application/route/route.go:34
FunctionProduce
Produce is responsible to publish the positions of each request Example of a json request: {"clientId":"1","routeId":"1"} {"clientId":"2","routeId":"2
simulator/application/kafka/produce.go:18
FunctionPublish
Publish is simple function created to publish new message to kafka
simulator/infra/kafka/producer.go:27
Methodconstructor
(options: { currentMarkerOptions: google.maps.ReadonlyMarkerOptions; endMarkerOptions: google.maps.Rea
react-frontend/src/util/map.ts:8
Methodconstructor
(element: Element, options: google.maps.MapOptions)
react-frontend/src/util/map.ts:64
Methodconstructor
(private readonly appService: AppService)
nest-api/src/app.controller.ts:6
Methodconstructor
( @Inject('KAFKA_SERVICE') private kafkaClient: ClientKafka, )
nest-api/src/routes/routes.gateway.ts:18
Methodconstructor
( @InjectModel(Route.name) private routeModel: Model<RouteDocument>, )
nest-api/src/routes/routes.service.ts:10
Methodconstructor
( private readonly routesService: RoutesService, @Inject('KAFKA_SERVICE') private kafkaClient: Cli
nest-api/src/routes/routes.controller.ts:23
MethodconsumeNewPosition
( @Payload() message: { value: { routeId: string; clientId: string; posi
nest-api/src/routes/routes.controller.ts:73
Methodcreate
(@Body() createRouteDto: CreateRouteDto)
nest-api/src/routes/routes.controller.ts:31
MethodfindAll
()
nest-api/src/routes/routes.service.ts:18
MethodfindAll
()
nest-api/src/routes/routes.controller.ts:36
MethodfindOne
(id: number)
nest-api/src/routes/routes.service.ts:22
MethodfindOne
(@Param('id') id: string)
nest-api/src/routes/routes.controller.ts:41
MethodgetHello
()
nest-api/src/app.controller.ts:9
MethodhandleMessage
(client: Socket, payload: { routeId: string })
nest-api/src/routes/routes.gateway.ts:28
Functionhandler
(data: { routeId: string; position: [number, number]; finished: boolean; })
react-frontend/src/components/Mapping.tsx:79
Functioninit
()
simulator/main.go:12
Functionmain
()
simulator/main.go:19
MethodonModuleInit
()
nest-api/src/routes/routes.gateway.ts:23
MethodonModuleInit
()
nest-api/src/routes/routes.controller.ts:55
Methodremove
(id: number)
nest-api/src/routes/routes.service.ts:30
Methodremove
(@Param('id') id: string)
nest-api/src/routes/routes.controller.ts:51
MethodstartRoute
(@Param('id') id: string)
nest-api/src/routes/routes.controller.ts:60
Methodupdate
(id: number, updateRouteDto: UpdateRouteDto)
nest-api/src/routes/routes.service.ts:26
Methodupdate
(@Param('id') id: string, @Body() updateRouteDto: UpdateRouteDto)
nest-api/src/routes/routes.controller.ts:46