内容简介:See it in action:Will run PostgreSQL and RabbitMQ with default credentials (see connection strings below).
LibreTaxi v2, ridesharing jailbreak, open-source Uber PoC
See it in action: https://t.me/libretaxi_bot Public feed: https://t.me/libretaxi_all
Running services
docker-compose up -d
Will run PostgreSQL and RabbitMQ with default credentials (see connection strings below).
Setting up RabbitMQ (for development and production)
rabbitmq:3-management
contains UI plugin for queue management. Plugin port is 8080 (15672 in container).
Login guest/guest
.
Login to RabbitUI here: http://localhost:8080
There is only one queue at the moment:
-
messagesqueue, http://localhost:8080/#/queues/%2F/messages - picked up by message handler, enqueued by libretaxi
Note that there is one message producer, and one message consumer threads (goroutines) in application.
Port 5672 is RabbitMQ itself.
LibreTaxi settings
Init settings for ./libretaxi.yml
:
telegram_token: YOUR_TOKEN db_conn_str: postgres://libretaxi:libretaxi@localhost:15432/libretaxi rabbit_url: amqp://127.0.0.1:8079/ admin_channel_chat_id: -1001324105405 public_channel_chat_id: -1001470847849
Admin channel is the place where you shadow ban spamers.
See https://stackoverflow.com/a/41779623/337085
for how to get id for you private channel.
You'll need to invite @get_id_bot
and type /my_id@get_id_bot
. You'll see chat id.
Running
When all services are running, run libretaxi:
dep ensure go build ./libretaxi
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
计算机科学概论(第12版)
[美] J.Glenn Brookshear、[美] Dennis Brylow / 刘艺、吴英、毛倩倩 / 人民邮电出版社 / 2017-1 / 69.00
《计算机科学概论》是计算机科学概论课程的经典教材,全书对计算机科学做了百科全书式的精彩阐述,充分展现了计算机科学的历史背景、发展历程和新的技术趋势。《计算机科学概论》首先介绍的是信息编码及计算机体系结构的基本原理,进而讲述操作系统和组网及因特网,接着探讨算法、程序设计语言及软件工程,然后讨论数据抽象和数据库方面的问题,讲述图形学的一些主要应用以及人工智能,以计算理论的介绍结束全书。《计算机科学概论......一起来看看 《计算机科学概论(第12版)》 这本书的介绍吧!