-
Notifications
You must be signed in to change notification settings - Fork 29
/
constants.go
46 lines (31 loc) · 1.84 KB
/
constants.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
package tradingview
// InitErrorContext ...
const InitErrorContext = "Initializing the connection"
// ReadFirstMessageErrorContext
const ReadFirstMessageErrorContext = "Reading the first message after stablishing the connection"
// DecodeFirstMessageErrorContext ...
const DecodeFirstMessageErrorContext = "Decoding the first message after stablishing the connection"
// FirstMessageWithoutSessionIdErrorContext ...
const FirstMessageWithoutSessionIdErrorContext = "Does not have 'session_id' property"
// ConnectionSetupMessagesErrorContext ...
const ConnectionSetupMessagesErrorContext = "Sending connection setup messages"
// SendMessageErrorContext ...
const SendMessageErrorContext = "Sending a message"
// SendKeepAliveMessageErrorContext ...
const SendKeepAliveMessageErrorContext = "Sending the keep alive message"
// GetPayloadLengthErrorContext ...
const GetPayloadLengthErrorContext = "Getting the payload length"
// DecodeMessageErrorContext ...
const DecodeMessageErrorContext = "Decoding the JSON message"
// DecodedMessageHasErrorPropertyErrorContext ...
const DecodedMessageHasErrorPropertyErrorContext = "JSON message has an error message"
// DecodedMessageDoesNotIncludePayloadErrorContext ...
const DecodedMessageDoesNotIncludePayloadErrorContext = "JSON message does not include the payload"
// PayloadCantBeParsedErrorContext ...
const PayloadCantBeParsedErrorContext = "JSON payload couldn't be parsed"
// FinalPayloadCantBeParsedErrorContext ...
const FinalPayloadCantBeParsedErrorContext = "The final JSON payload of the socket message couldn't be parsed"
// FinalPayloadHasMissingPropertiesErrorContext ...
const FinalPayloadHasMissingPropertiesErrorContext = "The final JSON payload doesn't have the expected data"
// ReadMessageErrorContext ...
const ReadMessageErrorContext = "Error while reading new messages through the socket connection"