et

module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2024 License: MIT

README

Go begin init

go mod init github.com/cgalvisleon/et
go get github.com/cgalvisleon/et

Dependencis

go get github.com/fsnotify/fsnotify
go get github.com/gorilla/websocket
go get github.com/mattn/go-colorable
go get github.com/dimiro1/banner
go get github.com/go-chi/chi/v5
go get github.com/shirou/gopsutil/v3/mem
go get github.com/googollee/go-socket.io
go get "github.com/satyakb/go-socket.io-redis"

CDM

go run ./cmd/service/main.go
go run ./cmd/gateway/main.go -port 3300 -rpc 4200

Public

go mod tidy &&
gofmt -w . &&
git update &&
git tag v0.0.3

git tags

go get github.com/cgalvisleon/et@v0.0.3

Condicion de carrera

go build --race ./cmd/gateway/main.go
go build --race ./cmd/serive/main.go

go build ./cmd/gateway/main.go

go run github.com/cgalvisleon/et/cmd/create go

go run ./cmd/create go

Websocket message

{"type": "ping"}
{"type": "params", "params": {"name": "Cesar Galvis"}}
{"type": "system", "params": {"name": "Cesar Galvis"}}
{"type": "message", "client_id": "0daa7ed8-7775-418b-973d-03f3f5132a2f", "message": "Hola"}
{"type": "subscribe", "channel": ""}
{"type": "unsubscribe", "channel": ""}
{"type": "publish", "channel": "", "message": "Hola, hola"}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL