Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSession ¶
type ClientSession struct { // configuration DeviceId string ServerAddr string ExchangeTimeout time.Duration CertPEMBlock []byte ReportPings bool Levels map[string]int64 Insecure bool // don't verify certs // connection Connection net.Conn }
ClienSession holds a client<->server session and its configuration.
func (*ClientSession) Dial ¶
func (sess *ClientSession) Dial() error
Dial connects to a server using the configuration in the ClientSession and sets up the connection.
func (*ClientSession) Run ¶
func (sess *ClientSession) Run(events chan<- string) error
Run the session with the server, emits a stream of events.
Click to show internal directories.
Click to hide internal directories.