-
Notifications
You must be signed in to change notification settings - Fork 2
/
const.go
72 lines (61 loc) · 2.36 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
package main
import (
"time"
)
// Constant global variables.
const (
screenWidth = 1366
screenHeight = 768
defaultTimeout = 5 * time.Second
/////////////////////////
// Title Screen.
////////////////////////
titleText = "Ableye"
taglineText = "A visualisation tool for exploring Ably."
realtimeText = "Explore Ably Realtime"
/////////////////////////
// Ably Client Screen.
/////////////////////////
// Default input text box contents.
defaultChannelName = "test"
defaultMessageName = "message"
defaultMessageData = "data"
// Button text
createRealtimeClientText = "Realtime Client"
createRestClientText = "Rest Client"
setChannelText = "Set Channel"
publishText = "Publish"
detachText = "Detach"
attachText = "Attach"
getChannelStatusText = "Get Status"
subscribeAllText = "Subscribe All"
unsubscribeText = "Unsubscribe"
enterPresenceText = "Enter"
getPresenceText = "Get"
leavePresenceText = "Leave"
// Display text
channelNameText = "Channel"
messageNameText = "Name"
messageDataText = "Data"
eventInfoText = "Events will be displayed here in realtime."
/////////////////////////
// Log messages.
/////////////////////////
createRealtimeClientSuccess = "Successfully created a new realtime client."
createRestClientSuccess = "Successfully created a new rest client."
closeRealtimeClientSuccess = "Successfully closed a realtime client."
closeRestClientSuccess = "Successfully closed a rest client."
setRealtimeChannelSuccess = "Successfully set channel for realtime client."
setRestChannelSuccess = "Successfully set channel for rest client."
detachChannelSuccess = "Successfully detached from channel."
attachChannelSuccess = "Successfuly attached to channel."
publishSuccess = "Successfully published to channel."
subscribeAllSuccess = "Successfully subscribed to all channel messages."
unsubscribeSuccess = "Successfully unsubscribed from channel messages."
enterPresenceSuccess = "Successfully entered presence."
leavePresenceSuccess = "Successfully removed presence."
successText = "Success."
// Async processes
startGetPresence = "go routine started to get presence."
completeGetPresence = "go routine completed to get presence."
)