Documentation ¶
Index ¶
- func HandleStream(cfg *config.Config) func(w http.ResponseWriter, r *http.Request)
- type MyCallback
- func (c MyCallback) Close(ocr *api.CloseResponse) error
- func (c MyCallback) Error(er *api.ErrorResponse) error
- func (c MyCallback) Message(mr *api.MessageResponse) error
- func (c MyCallback) Metadata(md *api.MetadataResponse) error
- func (c MyCallback) Open(ocr *api.OpenResponse) error
- func (c MyCallback) SpeechStarted(ssr *api.SpeechStartedResponse) error
- func (c MyCallback) UnhandledEvent(byData []byte) error
- func (c MyCallback) UtteranceEnd(ur *api.UtteranceEndResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleStream ¶
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
Click to show internal directories.
Click to hide internal directories.