2
0

platform.go 304 B

12345678910111213141516171819
  1. package platform
  2. import (
  3. "errors"
  4. "google.golang.org/protobuf/proto"
  5. "net/http"
  6. )
  7. var (
  8. errorClosed = errors.New("broadcasting has been over")
  9. )
  10. type Platform interface {
  11. Id() string
  12. Host() string
  13. Init(bid string) error
  14. Connect(chan proto.Message) error
  15. HLSStream() (*http.Request, error)
  16. }