package
module
Version:
v0.0.0-...-8f4b1ae
Opens a new window with list of versions in this module.
Published: Nov 22, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func GetURLQuery(rawurl string) (url.Values, error)
-
func GetWebsocketURL(httpURL string) (*url.URL, *http.Header, error)
-
func ParseURL(input string) (string, error)
-
type Client
-
func (c *Client) Close()
-
func (c *Client) Connect(build, new bool, file, img, username, key, port string) error
-
func (c *Client) ExitLoop()
-
func (c *Client) Loop(build, new bool, file, img, username, key, port string) error
-
func (c *Client) SetOutput(w io.Writer)
GetURLQuery returns url.query
GetWebsocketURL transforms a GoTTY http URL to its WebSocket URL
ParseURL parses an URL which may be incomplete and tries to standardize it
Client type
NewClient returns a GoTTY client object
Close will nicely close the dialer
Connect tries to dial a websocket server
ExitLoop will kill all goroutines launched by c.Loop()
ExitLoop() -> wait Loop() -> Close()
Loop will look indefinitely for new messages
SetOutput changes the output stream
Source Files
¶
Click to show internal directories.
Click to hide internal directories.