client

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Internal code for the cyandb client

Index

Constants

View Source
const (
	DefaultAddr = "ws://localhost:8080/ws"
)

Variables

This section is empty.

Functions

func GetJsonInput

func GetJsonInput(promptOne string, promptTwo string) (string, error)

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
}

func CreateClient

func CreateClient(addr string) *Client

CreateClient creates a client

func (*Client) StartClient

func (client *Client) StartClient()

StartClient will be updated later

type MessagePrinter

type MessagePrinter struct {
	Messages chan string
}

type Stack

type Stack struct {
	Data []rune
}

Jump to

Keyboard shortcuts

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