split socket package

This commit is contained in:
syumai 2024-01-03 18:39:40 +09:00
parent 0bcc7e1322
commit cd71071154
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
package cloudflare
package socket
import (
"context"