Documentation ¶
Index ¶
- Variables
- func HttpGet(ctx context.Context, url string, header map[string]string, data g.Map, ...) error
- func HttpPost(ctx context.Context, url string, header map[string]string, ...) error
- func HttpPostJson(ctx context.Context, url string, header map[string]string, ...) error
- type StreamReader
- type WebSocketConn
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTooManyEmptyStreamMessages = errors.New("stream has sent too many empty messages")
)
Functions ¶
Types ¶
type StreamReader ¶ added in v0.1.4
type StreamReader struct {
// contains filtered or unexported fields
}
func (*StreamReader) Close ¶ added in v0.1.4
func (stream *StreamReader) Close() error
func (*StreamReader) Recv ¶ added in v0.1.4
func (stream *StreamReader) Recv() (response []byte, err error)
type WebSocketConn ¶ added in v0.1.4
type WebSocketConn struct {
// contains filtered or unexported fields
}
func WebSocketClient ¶ added in v0.1.2
func (*WebSocketConn) Close ¶ added in v0.1.4
func (c *WebSocketConn) Close() (err error)
func (*WebSocketConn) ReadMessage ¶ added in v0.1.4
func (c *WebSocketConn) ReadMessage(ctx context.Context) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.