Skip to content
/ go-hub Public

An attempt at providing a simple, easy to use and expandable websocket client-server communication bus.

License

Notifications You must be signed in to change notification settings

devodev/go-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-hub

go-hub is an attempt at providing a simple, easy to use and expandable websocket client-server communication bus.

GitHub tag (latest SemVer) GitHub go.mod Go version go.dev reference Go Report Card GitHub license

Table of Contents

Overview

Currently, go-hub requires Go version 1.13 or greater.

Installation

go get github.com/devodev/go-hub

Development

You can use the provided Dockerfile to build an image that will provide a clean environment for development purposes.
Instructions that follow assumes you are running Windows, have Docker Desktop installed and its daemon is running.

Clone this repository and build the image

$ git clone https://github.com/devodev/go-hub
$ cd ./go-hub
$ docker build --tag=go-hub .

Run a container using the previously built image while mounting the CWD and exposing port 8080

$ docker run \
    --rm \
    --volume="$(pwd -W):/srv/src/github.com/devodev/go-hub" \
    --tty \
    --interactive \
    -p 8080:8080 \
    go-hub
$ root@03e67598a37f:/srv/src/github.com/devodev/go-hub#

Start deving

$ go run .
go: downloading github.com/gorilla/websocket v1.4.2
go: extracting github.com/gorilla/websocket v1.4.2
go: finding github.com/gorilla/websocket v1.4.2
2020/04/17 18:10:34 ListenAndServe: ":8080"

Contributing

This repository is under heavy development and is subject to change in the near future.
Versioning will be locked and a proper contributing section will be created in a timely manner, when code is stabilized.

License

go-hub is released under the MIT license. See LICENSE.txt

About

An attempt at providing a simple, easy to use and expandable websocket client-server communication bus.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published