utils

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseData

type ResponseData struct {
	ResponseMetadata struct {
		RequestId string `json:"RequestId"`
		Region    string `json:"Region"`
	} `json:"ResponseMetadata"`
	Result struct {
		Suggest string `json:"Suggest"`
	} `json:"Result"`
}

type StreamReader

type StreamReader struct {
	IsFinished bool
	Reader     *bufio.Reader
	Response   *http.Response
}

func (*StreamReader) Close

func (stream *StreamReader) Close() error

func (*StreamReader) Recv

func (stream *StreamReader) Recv() (response *StreamResponse, err error)

type StreamResponse

type StreamResponse struct {
	Event string        `json:"Event"`
	Data  *ResponseData `json:"Data"`
}

Jump to

Keyboard shortcuts

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