Documentation ¶
Index ¶
- func Delete(url, username, password string) ([]byte, error)
- func Get(url, username, password string) ([]byte, error)
- func ListenToSocket(url, subscribeBody, unsubscribeBody string, c chan []byte, quit chan bool)
- func Patch(url, username, password string, data []byte) ([]byte, error)
- func Post(url, username, password string, data []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenToSocket ¶
Listens to text responses over a websocket and passes them to a channel.
Arguments:
- url e.g. wss://live.stellar.org:9001
- body e.g. `{ "command": "subscribe", "streams": [ "transactions" ] }`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.