English | 简体中文
Contact us:
WeChat:BCFind5 【Please note the good information】
Telegram:@BCFind5
Background presentation address: http://www.jinqianlive.com/admin
user :test pass: test
Live short video https://baoya.lanzous.com/imcL9e57tej
Voice chat room http://app.6sjs.com/wej8
IOS :https://pan.baidu.com/s/18KaHu-39TMQLetb0m7XD0Q 提取码:v929
doc:http://www.jinqianlive.com/appapi/listAllApis.php?type=expand
The front-end display
Backend interface
System development language
Install golang
wget http://www.golangtc.com/static/go/go1.3.linux-amd64.tar.gz
tar -C /usr/local -zxvf go1.3.linux-amd64.tar.gz
vim /etc/profile
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH="$HOME/go
success
install etcd
curl -L https://github.com/coreos/etcd/releases/download/v3.3.2/etcd-v3.3.2-linux-amd64.tar.gz -o etcd-v3.3.2-linux-amd64.tar.gz
tar -zxf etcd-v3.3.2-linux-amd64.tar.gz
mv etcd-v3.3.2-linux-amd64/etcd* /$GOPATH/bin
./etcd
success
install Protobuf tools
mkdir /www/go/live
cd /www/go/live
go mod init live
#go.mod file
Go Micro RPC
go get github.com/micro/go-micro
install protoc
from https://github.com/protocolbuffers/protobuf/releases down`new`version protoc :
./configure
make && make install
protoc --version
install protoc-gen-micro
go get -u github.com/micro/protoc-gen-micro
install protoc-gen-go
go get -u github.com/golang/protobuf/protoc-gen-go
cp protoc-gen-* /usr/local/bin/
$GOPATH/bin copy /usr/local/bin
mkdir /www/go/live/proto
syntax = "proto3";
service Live {
rpc Call(LiveRequest) returns (LiveResponse) {}
}
message LiveRequest {
string name = 1;
}
message liveResponse {
string result = 1;
}
protoc auto code
protoc --proto_path=. --micro_out=. --go_out=. proto/live.proto
:
Write the Go service implementation code live make mian.go
package main
import (
"context"
"fmt"
"github.com/micro/go-micro"
proto "live/proto"
)
type LiveServiceHandler struct{}
func (g *LiveServiceHandler)Call(ctx context.Context, req *proto.LiveRequest, rsp *proto.LiveResponse) error {
rsp.Result = "github:https://github.com/DOUBLE-Baller/" + req.Name
return nil
}
func main() {
service := micro.NewService(
micro.Name("go.micro.api.Live"), //go.micro.api namespace
)
// init
service.Init()
// register
proto.RegisterLiveHandler(service.Server(), new(LiveServiceHandler))
// run
if err := service.Run(); err != nil {
fmt.Println(err)
}
}
go run main.go
attention:add MICRO_REGISTRY=etcd used go run main.go --registry=etcd
failure
attention:add go.mod last
replace google.golang.org/grpc => google.golang.org/grpc v1.26.0
use go micro provide HTTP API
go get github.com/micro/micro/v2
finish, $GOPATH/bin make micro run,cp from /user/local/bin
micro api --handler=rpc
default:8080
visit IP:8080
micro call go.micro.api.Live Live.Call '{"name": "momo"}'
Terry-Mao/goim
is a IM and push notification server cluster.
$ yum -y install java-1.7.0-openjdk
Please follow the official quick start here.
Please follow the official quick start here.
1.Download goim
$ yum install git
$ cd $GOPATH/src
$ git clone https://github.com/Terry-Mao/goim.git
$ cd $GOPATH/src/goim
$ go get ./...
2.Install router、logic、comet、job modules(You might need to change the configuration files based on your servers)
$ cd $GOPATH/src/goim/router
$ go install
$ cp router-example.conf $GOPATH/bin/router.conf
$ cp router-log.xml $GOPATH/bin/
$ cd ../logic/
$ go install
$ cp logic-example.conf $GOPATH/bin/logic.conf
$ cp logic-log.xml $GOPATH/bin/
$ cd ../comet/
$ go install
$ cp comet-example.conf $GOPATH/bin/comet.conf
$ cp comet-log.xml $GOPATH/bin/
$ cd ../logic/job/
$ go install
$ cp job-example.conf $GOPATH/bin/job.conf
$ cp job-log.xml $GOPATH/bin/
Everything is DONE!
You may need to change the log files location.
$ cd /$GOPATH/bin
$ nohup $GOPATH/bin/router -c $GOPATH/bin/router.conf 2>&1 > /data/logs/goim/panic-router.log &
$ nohup $GOPATH/bin/logic -c $GOPATH/bin/logic.conf 2>&1 > /data/logs/goim/panic-logic.log &
$ nohup $GOPATH/bin/comet -c $GOPATH/bin/comet.conf 2>&1 > /data/logs/goim/panic-comet.log &
$ nohup $GOPATH/bin/job -c $GOPATH/bin/job.conf 2>&1 > /data/logs/goim/panic-job.log &
If it fails, please check the logs for debugging.
Check the push protocols herepush HTTP protocols
TODO
Websocket: Websocket Client Demo
Android: Android SDK
iOS: iOS
==The problem of feedback==
Please let us know if you have any problems during use. You can use the following contact information to communicate with us
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.