-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.go
25 lines (22 loc) · 939 Bytes
/
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
// Copyright 2018 DataArt. All rights reserved.
// Use of this source code is governed by an Apache-style
// license that can be found in the LICENSE file.
package devicehive_go
import "time"
const (
timestampLayout = "2006-01-02T15:04:05.000"
Timeout = 5 * time.Second
UserStatusActive = 0
UserStatusLocked = 1
UserStatusDisabled = 2
UserRoleAdmin = 0
UserRoleClient = 1
InvalidResponseErr = "invalid response"
InvalidRequestErr = "invalid request"
InvalidSubscriptionEventData = "invalid subscription event data"
ServiceErr = "service error"
ConnectionFailedErr = "connection failed"
DefaultPollingWaitTimeoutSeconds = 30
WrongURLErr = "wrong url"
TokenExpiredErr = "401 token expired"
)