Documentation ¶
Index ¶
- Constants
- func HandleEvents()
- func HandleIncomingMessages(connection *websocket.Conn)
- func HandleSendEvents(connection *websocket.Conn)
- func HandleWebsocketClose(message ControllerMessage)
- func InitClient() *websocket.Conn
- func Main()
- func ScanFile()
- func SendIdentity(connection *websocket.Conn, clientId string)
- type ClientOptions
- type ControllerMessage
Constants ¶
View Source
const ( EVENT_IDENTITY = "identity" EVENT_SUBSCRIBER_ACK = "subscriber_ack" )
View Source
const ( DEFAULT_ENVIRONMENT = "prod" DEFAULT_DOMAIN = "localhost:3000" DEFAULT_LOG_LEVEL = "error" )
Variables ¶
This section is empty.
Functions ¶
func HandleEvents ¶ added in v0.1.3
func HandleEvents()
func HandleIncomingMessages ¶
func HandleSendEvents ¶
func HandleWebsocketClose ¶
func HandleWebsocketClose(message ControllerMessage)
func InitClient ¶
func SendIdentity ¶
Types ¶
type ClientOptions ¶
type ClientOptions struct { Env string Domain *common.Domain LogLevel zapcore.Level PeerId string Listen bool Output bool UrlClipboard bool }
func InitOptions ¶
func InitOptions() *ClientOptions
Click to show internal directories.
Click to hide internal directories.