Giter Site home page Giter Site logo

neuron's Introduction

Neuron

一款强大的HTTP / Websocket服务器,可用于开发微服务框架,IoT,分布式爬网程序。

特点

  • 「仅使用Go标准库」实现HTTP服务器及HTTP静态文件服务器,启动后自动创建static目录及index.html

  • 生命周期明晰,微服务架构,可在配置文件中开关服务,启动后自动创建config.json

    "AutorunConfig": {
        # 端口转发服务
        "ADProxy": true,
        # RPC & MQ 服务端
        "ADCommander": true,
        # RPC & MQ 客户端
        "ADReceiver": true,
        # Example -> 分布式爬虫服务端
        "SDExamplePublish": true,
        # Example -> 分布式爬虫客户端
        "SDExampleSubscribe": true
    }
  • 自带HTTPS实现

    "HTTPS": {
        # 开关
        "Open": false,
        # 服务端口号通常为443"TLSPort": 8443,
        # 对应根目录下证书文件 -> ./tls/tls.crt & ./tls/tls.key
        "TLSCertPath": "/tls/tls" 
    }
  • 自带代理及端口转发(支持TCP2TCP & TCP2UDP & UDP2UDP & UDP2TCP & UART2UDP)

{
    "ProxyHub": {
        "TCP": {
            # 主机192.168.1.100的6666端口转发到本机的6666端口
            "0.0.0.0:6666":"192.168.1.100:6666",
            # 主机192.168.1.100的7777端口转发到本机的7777端口
            "0.0.0.0:7777":"192.168.1.100:7777"
        },
        "UDP": {},
        "TCP2UDP": {},
        "UDP2TCP": {},
        "UART2UDP": {
            # 主机RS232或者RS485串口转发到本机UDP协议55555端口
            "0.0.0.0:55555": {
                "PortName": "/dev/ttyAMA0",
                "BaudRate": 115200,
                "DataBits": 8,
                "StopBits": 1,
                "MinimumReadSize": 4
            }
        }
    }
}

neuron's People

Contributors

duliunet avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.