Documentation ¶
Index ¶
- func InitWorker() worker.Worker
- type FSM
- type Stream
- func (s *Stream) GetFSM() *fsm.FSM
- func (s *Stream) LaunchRoku() error
- func (s *Stream) NewHttpClient(ctx context.Context) *http.Client
- func (s *Stream) OneShot() chan<- struct{}
- func (s *Stream) ProcessSegment(ctx context.Context, request *segment.Request) error
- func (s *Stream) PushEvent(ctx context.Context, str string)
- func (s *Stream) RokuCB() (*roku.Remote, error)
- func (s *Stream) Run(ctx context.Context) error
- type StreamOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitWorker ¶
Types ¶
type Stream ¶
type Stream struct {
// contains filtered or unexported fields
}
func NewStream ¶
func NewStream(opts ...StreamOption) (*Stream, error)
func (*Stream) LaunchRoku ¶
func (*Stream) ProcessSegment ¶
type StreamOption ¶
func WithBot ¶
func WithBot(b *bot.Bot) StreamOption
func WithFlags ¶
func WithFlags() StreamOption
func WithRokuCB ¶
func WithRokuCB(rokuCB func() (*roku.Remote, error)) StreamOption
func WithURL ¶
func WithURL(u *url.URL) StreamOption
func WithWorker ¶
func WithWorker(w worker.Worker) StreamOption
Click to show internal directories.
Click to hide internal directories.