streaming

package
v0.0.0-...-9ae7e58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleStream

func HandleStream(cfg *config.Config) func(w http.ResponseWriter, r *http.Request)

Types

type MyCallback

type MyCallback struct{}

func (MyCallback) Close

func (c MyCallback) Close(ocr *api.CloseResponse) error

func (MyCallback) Error

func (c MyCallback) Error(er *api.ErrorResponse) error

func (MyCallback) Message

func (c MyCallback) Message(mr *api.MessageResponse) error

func (MyCallback) Metadata

func (c MyCallback) Metadata(md *api.MetadataResponse) error

func (MyCallback) Open

func (c MyCallback) Open(ocr *api.OpenResponse) error

func (MyCallback) SpeechStarted

func (c MyCallback) SpeechStarted(ssr *api.SpeechStartedResponse) error

func (MyCallback) UnhandledEvent

func (c MyCallback) UnhandledEvent(byData []byte) error

func (MyCallback) UtteranceEnd

func (c MyCallback) UtteranceEnd(ur *api.UtteranceEndResponse) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL