Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codeedu/imersao-fsfc2
/ functions
Functions
49 in github.com/codeedu/imersao-fsfc2
⨍
Functions
49
◇
Types & classes
32
↓ 1 callers
Method
Consume
Consume consumes all message pulled from apache kafka and sent it to message channel
simulator/infra/kafka/consumer.go:25
↓ 1 callers
Method
ExportJsonPositions
ExportJsonPositions generates a slice of string in Json using PartialRoutePosition struct
simulator/application/route/route.go:68
↓ 1 callers
Method
LoadPositions
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 callers
Method
addRoute
( id: string, routeOptions: { currentMarkerOptions: google.maps.ReadonlyMarkerOptions; end
react-frontend/src/util/map.ts:78
↓ 1 callers
Function
bootstrap
()
nest-api/src/main.ts:5
↓ 1 callers
Method
calculateRoute
()
react-frontend/src/util/map.ts:33
↓ 1 callers
Method
create
(createRouteDto: CreateRouteDto)
nest-api/src/routes/routes.service.ts:14
↓ 1 callers
Method
delete
()
react-frontend/src/util/map.ts:54
↓ 1 callers
Method
fitBounds
()
react-frontend/src/util/map.ts:98
↓ 1 callers
Function
getCurrentPosition
( options?: PositionOptions )
react-frontend/src/util/geolocation.ts:1
↓ 1 callers
Method
getHello
()
nest-api/src/app.service.ts:5
↓ 1 callers
Function
makeCarIcon
(color: string)
react-frontend/src/util/map.ts:111
↓ 1 callers
Function
makeMarkerIcon
(color: string)
react-frontend/src/util/map.ts:121
↓ 1 callers
Method
moveCurrentMarker
(id: string, position: google.maps.LatLngLiteral)
react-frontend/src/util/map.ts:68
↓ 1 callers
Method
removeRoute
(id: string)
react-frontend/src/util/map.ts:72
↓ 1 callers
Function
reportWebVitals
(onPerfEntry?: ReportHandler)
react-frontend/src/reportWebVitals.ts:3
↓ 1 callers
Method
sendPosition
(data: { clientId: string; routeId: string; position: [number, number]; finished: boolean; }
nest-api/src/routes/routes.gateway.ts:44
Function
App
()
react-frontend/src/App.tsx:6
Function
Mapping
()
react-frontend/src/components/Mapping.tsx:55
Function
Navbar
()
react-frontend/src/components/Navbar.tsx:5
Function
NewKafkaConsumer
NewKafkaConsumer creates a new KafkaConsumer struct with its message channel as dependency
simulator/infra/kafka/consumer.go:18
Function
NewKafkaProducer
NewKafkaProducer creates a ready to go kafka.Producer instance
simulator/infra/kafka/producer.go:11
Function
NewRoute
NewRoute creates a *Route struct
simulator/application/route/route.go:34
Function
Produce
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
Function
Publish
Publish is simple function created to publish new message to kafka
simulator/infra/kafka/producer.go:27
Method
constructor
(options: { currentMarkerOptions: google.maps.ReadonlyMarkerOptions; endMarkerOptions: google.maps.Rea
react-frontend/src/util/map.ts:8
Method
constructor
(element: Element, options: google.maps.MapOptions)
react-frontend/src/util/map.ts:64
Method
constructor
(private readonly appService: AppService)
nest-api/src/app.controller.ts:6
Method
constructor
( @Inject('KAFKA_SERVICE') private kafkaClient: ClientKafka, )
nest-api/src/routes/routes.gateway.ts:18
Method
constructor
( @InjectModel(Route.name) private routeModel: Model<RouteDocument>, )
nest-api/src/routes/routes.service.ts:10
Method
constructor
( private readonly routesService: RoutesService, @Inject('KAFKA_SERVICE') private kafkaClient: Cli
nest-api/src/routes/routes.controller.ts:23
Method
consumeNewPosition
( @Payload() message: { value: { routeId: string; clientId: string; posi
nest-api/src/routes/routes.controller.ts:73
Method
create
(@Body() createRouteDto: CreateRouteDto)
nest-api/src/routes/routes.controller.ts:31
Method
findAll
()
nest-api/src/routes/routes.service.ts:18
Method
findAll
()
nest-api/src/routes/routes.controller.ts:36
Method
findOne
(id: number)
nest-api/src/routes/routes.service.ts:22
Method
findOne
(@Param('id') id: string)
nest-api/src/routes/routes.controller.ts:41
Method
getHello
()
nest-api/src/app.controller.ts:9
Method
handleMessage
(client: Socket, payload: { routeId: string })
nest-api/src/routes/routes.gateway.ts:28
Function
handler
(data: { routeId: string; position: [number, number]; finished: boolean; })
react-frontend/src/components/Mapping.tsx:79
Function
init
()
simulator/main.go:12
Function
main
()
simulator/main.go:19
Method
onModuleInit
()
nest-api/src/routes/routes.gateway.ts:23
Method
onModuleInit
()
nest-api/src/routes/routes.controller.ts:55
Method
remove
(id: number)
nest-api/src/routes/routes.service.ts:30
Method
remove
(@Param('id') id: string)
nest-api/src/routes/routes.controller.ts:51
Method
startRoute
(@Param('id') id: string)
nest-api/src/routes/routes.controller.ts:60
Method
update
(id: number, updateRouteDto: UpdateRouteDto)
nest-api/src/routes/routes.service.ts:26
Method
update
(@Param('id') id: string, @Body() updateRouteDto: UpdateRouteDto)
nest-api/src/routes/routes.controller.ts:46