Documentation ¶
Overview ¶
Internal code for the cyandb client
Index ¶
- Constants
- func GetJsonInput(promptOne string, promptTwo string) (string, error)
- func OnConnectError(err error, _ gowebsocket.Socket)
- func OnConnected(_ gowebsocket.Socket)
- func OnDisconnected(_ error, _ gowebsocket.Socket)
- func OnTextMessage(message string, _ gowebsocket.Socket)
- type Client
- type MessagePrinter
- type Stack
Constants ¶
View Source
const (
DefaultAddr = "ws://localhost:8080/ws"
)
Variables ¶
This section is empty.
Functions ¶
func GetJsonInput ¶
GetJsonInput gets the json command from the user
func OnConnectError ¶
func OnConnectError(err error, _ gowebsocket.Socket)
func OnConnected ¶
func OnConnected(_ gowebsocket.Socket)
func OnDisconnected ¶
func OnDisconnected(_ error, _ gowebsocket.Socket)
func OnTextMessage ¶
func OnTextMessage(message string, _ gowebsocket.Socket)
Types ¶
type Client ¶
type Client struct { Addr string Socket gowebsocket.Socket }
type MessagePrinter ¶
type MessagePrinter struct {
Messages chan string
}
Click to show internal directories.
Click to hide internal directories.