Versions in this module Expand all Collapse all v0 v0.8.0 Jun 11, 2024 Changes in this version + func GetPSKKeyFromAPI(hint string, endpoint string, username string, password string, ...) ([]byte, bool) + type ClientState uint32 + const StateActive + const StateAsleep + const StateAwake + const StateDisconnected + func (s *ClientState) Get() ClientState + func (s *ClientState) Set(new ClientState) ClientState + func (s ClientState) String() string + type ConnWithContext struct + func NewConnWithContext(ctx context.Context, conn net.Conn, timeout time.Duration) *ConnWithContext + func (c *ConnWithContext) Close() error + func (c *ConnWithContext) Read(p []byte) (int, error) + func (c *ConnWithContext) Write(b []byte) (int, error) + type DebugLogger struct + func (l DebugLogger) Debug(format string, a ...interface{}) + func (l DebugLogger) Error(format string, a ...interface{}) + func (l DebugLogger) Info(format string, a ...interface{}) + func (l DebugLogger) Sync() + func (l DebugLogger) WithTag(tag string) Logger + type IDSequence struct + func NewIDSequence(minID, maxID uint16) *IDSequence + func (c *IDSequence) Next() (id uint16, overflow bool) + type Logger interface + Debug func(format string, a ...interface{}) + Error func(format string, a ...interface{}) + Info func(format string, a ...interface{}) + Sync func() + WithTag func(tag string) Logger + func NewDebugLogger(tags string) Logger + func NewProductionLogger(tags string) Logger + func NewSyslogLogger(tag string, debug bool) (Logger, error) + type NoOpLogger struct + func (l NoOpLogger) Debug(format string, a ...interface{}) + func (l NoOpLogger) Error(format string, a ...interface{}) + func (l NoOpLogger) Info(format string, a ...interface{}) + func (l NoOpLogger) Sync() + func (l NoOpLogger) WithTag(tag string) Logger + type ProductionLogger struct + func (l ProductionLogger) Debug(format string, a ...interface{}) + func (l ProductionLogger) Error(format string, a ...interface{}) + func (l ProductionLogger) Info(format string, a ...interface{}) + func (l ProductionLogger) Sync() + func (l ProductionLogger) WithTag(tag string) Logger + type SyslogLogger struct + func (l *SyslogLogger) Debug(format string, a ...interface{}) + func (l *SyslogLogger) Error(format string, a ...interface{}) + func (l *SyslogLogger) Info(format string, a ...interface{}) + func (l *SyslogLogger) Sync() + func (l *SyslogLogger) WithTag(tag string) Logger + type Tags struct + func (t Tags) String() string + func (t Tags) With(tag string) Tags