All Projects → localtunnel → go-localtunnel

localtunnel / go-localtunnel

Licence: MPL-2.0 license
golang client library for localtunnel.me

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to go-localtunnel

zeeka
Secure global file sharing using tcp tunnels. Currently tunneling through localtunnel's public servers. Zeeka dedicated servers coming soon.
Stars: ✭ 21 (-73.08%)
Mutual labels:  localtunnel
localtunnel
A localtunnel client written in Golang.
Stars: ✭ 23 (-70.51%)
Mutual labels:  localtunnel

LocalTunnel Client Library for Go Build Status

A localtunnel.me client library exposing localtunnel connections through a net.Listener implementation. While localtunnel only supports forwarding HTTP(S) connections, this is useful as you can hook it up to http.Server directly. Neat, if writing test-suites or command-line utilities exposing web-hooks of localtunnel.

// Setup a listener for localtunnel
listener, err := localtunnel.Listen(localtunnel.Options{})

// Create your server...
server := http.Server{
    Handler: http.HandleFunc(func(w http.ResponseWriter, r *http.Request) {
        w.WriteHeader(200)
        ...
    })
}

// Handle request from localtunnel
server.Serve(listener)

See documentation for more details.

License

This package is released under MPLv2.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].