mirror of
https://github.com/syumai/workers.git
synced 2025-03-10 17:29:11 +00:00
split socket package
This commit is contained in:
parent
0bcc7e1322
commit
cd71071154
@ -6,12 +6,12 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/syumai/workers"
|
||||
"github.com/syumai/workers/cloudflare"
|
||||
"github.com/syumai/workers/cloudflare/socket"
|
||||
)
|
||||
|
||||
func main() {
|
||||
handler := http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
|
||||
dialer, err := cloudflare.NewDialer(req.Context(), nil)
|
||||
dialer, err := socket.NewDialer(req.Context(), nil)
|
||||
if err != nil {
|
||||
http.Error(w, err.Error(), http.StatusInternalServerError)
|
||||
return
|
||||
|
@ -1,4 +1,4 @@
|
||||
package cloudflare
|
||||
package socket
|
||||
|
||||
import (
|
||||
"context"
|
Loading…
x
Reference in New Issue
Block a user