forked from adrian-bl/dyslink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopts.go
30 lines (26 loc) · 871 Bytes
/
opts.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
/*
* Copyright (c) 2016 Adrian Ulrich
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
*/
package dyslink
const (
TypeModelN475 = "475" // pure link cool (non-desk)
TypeModelN469 = "469" // pure link cool round/desk
TypeModelN455 = "455" // pure hot & cool
)
type MessageCallback struct {
Error error
Message interface{}
}
type ClientOpts struct {
Username string // The username to use for this connection
Password string // The password to use for this connection
DeviceAddress string // The ip+port of the device in the tcp://IP:PORT format
Model string // One of the TypeModel* constants
CallbackChan chan<- *MessageCallback
}