/api/v1/streaming/public/local

master
Charles Iliya Krempeaux 2024-08-06 15:49:22 -07:00
parent eca6289ce5
commit 5043c16726
4 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,7 @@
package local
import (
"github.com/reiver/go-httpsse"
)
type Client = httpsse.Client

View File

@ -0,0 +1,22 @@
package local
import (
"net/http"
"net/url"
"github.com/reiver/go-httpsse"
)
func DialHost(host string) (Client, error) {
var urloc = url.URL{
Scheme:"https",
Host:host,
Path:Path,
}
return httpsse.DialURL(urloc.String())
}
func Dial(req *http.Request) (Client, error) {
return httpsse.Dial(req)
}

View File

@ -0,0 +1,7 @@
package local
import (
"github.com/reiver/go-httpsse"
)
type Event = httpsse.Event

View File

@ -0,0 +1,3 @@
package local
const Path string = "/api/v1/streaming/public/local"