/api/v1/streaming/public/local
parent
eca6289ce5
commit
5043c16726
|
@ -0,0 +1,7 @@
|
|||
package local
|
||||
|
||||
import (
|
||||
"github.com/reiver/go-httpsse"
|
||||
)
|
||||
|
||||
type Client = httpsse.Client
|
|
@ -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)
|
||||
}
|
|
@ -0,0 +1,7 @@
|
|||
package local
|
||||
|
||||
import (
|
||||
"github.com/reiver/go-httpsse"
|
||||
)
|
||||
|
||||
type Event = httpsse.Event
|
|
@ -0,0 +1,3 @@
|
|||
package local
|
||||
|
||||
const Path string = "/api/v1/streaming/public/local"
|
Loading…
Reference in New Issue