EricKIm ae390c4a77 240813-1824-Kim | há 3 meses atrás | |
---|---|---|
etc | há 8 meses atrás | |
images | há 1 ano atrás | |
spider | há 1 ano atrás | |
tmp | há 1 ano atrás | |
vendor | há 6 meses atrás | |
README.md | há 1 ano atrás | |
abango.go | há 1 ano atrás | |
config.go | há 1 ano atrás | |
controller.go | há 3 meses atrás | |
go.mod | há 6 meses atrás | |
go.sum | há 6 meses atrás | |
goget_all.sh | há 1 ano atrás | |
kafka.go | há 1 ano atrás | |
memory-db-redis.go | há 1 ano atrás | |
modules.txt | há 1 ano atrás | |
rest-end.go | há 1 ano atrás | |
rest-svc.go | há 1 ano atrás | |
structs.go | há 3 meses atrás |
is a golang web framework which supports Kafka, gRpc and RESTful API at the same time in single/multi thread.
Any of these versions will allow you to import Abango as github.com/dabory/abango which is the recommended way of using abang.
supports REST API powered by Echo framework in go lang Z
gRpc from Google
Echo - the best RESTful API in golang so far
Kafka-Docker
Sarama - Golang library for Kafka written by IBM
Xorm - Simple and strong ORM written in Golang
Python Django, Golang Beego - Inspire to give birth to Abango.
$ go get -u google.golang.org/grpc
$ go get -u github.com/golang/protobuf/protoc-gen-go
$ go get xorm.io/xorm
$ go get github.com/pilu/fresh
$ go get github.com/labstack/echo
$ go get github.com/go-sql-driver/mysql
$ go get github.com/dabory/abango
$ go get github.com/dabory/kafka-docker
$ go get github.com/dabory/svc-abango
$ go get github.com/dabory/end-abango
$ go get github.com/go-xorm/xorm
To run Apache Kafka, use this command in one terminal mode
$ cd $GOPATH/src/
$ git clone https://github.com/dabory/kafka-docker
$ cd $GOPATH/src/kafka-docker
$ docker-compose up
To run service, use this command in another terminal mode
$ cd $GOPATH/src/github.com/dabory/svc-abango
$ vi conf/config_select.json
....... ; specify config.json file which has xxx prefix in file name
$ vi conf/xxx_config.json
....... ; change parameter values linked conf file if necessary
$ fresh
....... ; run service
To run request, use this command in the other terminal mode
$ cd $GOPATH/src/github.com/dabory/end-abango
$ vi conf/config_select.json
....... ; specify config.json file which has xxx prefix in file name
$ vi conf/xxx_config.json
....... ; change parameter and select service api if necessary
$ go run main.go login
....... ; run a request and it returns same value in file ./json-send/login.json
[ReturnStatus: 200 ReturnJsonFile: json-receive/login.json]
[{
"UserId": "admin",
"Password": "admin-password"
}]
It is crucial in Kafka messaging service to syncronize producing messages and acquire return messages from backend as RESTful API and gRpc API do.