| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx
71846568
9年前发布

Go开发的一个微型的Webchat服务器

来自: https://github.com/rafael-santiago/cherry

Cherry

Cherry is a webchat engine wrote in Golang . It brings the main functionalities that you need in a webchat server.

With this application you are able to serve a bunch of rooms from your machine just editing a configuration file in a specific language. So if you are interested you should read thedocumentation to learn how to master it.

Until now SSL connections are unsupported.

How to build it?

You can use the standard go build or you can useHefesto.

Using hefesto

After following all steps to put Hefesto to work on your system just move to src subdirectory and invoke Hefesto from inside. Something like:

doctor@TARDIS:~/web/git-hub/rafael-santiago/cherry/src# hefesto

If all worked a cherry binary was created under ../bin/ and

All done.

How to run it?

This application works based on a configuration file (again:documentation).

You specify this configuration using the option --config :

doctor@TARDIS:~/web/git-hub/rafael-santiago/cherry/bin# ./cherry --config=gallifrey-lounge.cherry

Supposing that TARDIS has the IP address 192.30.70.3 and Gallifrey lounge opens only one room at the port 1008. Doctor should access the entrace form served at:

http://192.30.70.3:1008/join

That's all.

 本文由用户 71846568 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
 转载本站原创文章,请注明出处,并保留原始链接、图片水印。
 本站是一个以用户分享为主的开源技术平台,欢迎各类分享!
 本文地址:https://www.open-open.com/lib/view/open1456819273437.html
Go语言 Google Go/Golang开发