Versions in this module Expand all Collapse all v0 v0.0.2 Jul 31, 2023 Changes in this version + func Critical(ctx context.Context, format string, v ...interface{}) + func Debug(ctx context.Context, format string, v ...interface{}) + func Error(ctx context.Context, format string, v ...interface{}) + func Info(ctx context.Context, format string, v ...interface{}) + func SetLevelByString(level string) + func SetOutput(output io.Writer) + func Warn(ctx context.Context, format string, v ...interface{}) + type Level uint32 + const CriticalLevel + const DebugLevel + const ErrorLevel + const InfoLevel + const WarnLevel + func StringToLevel(level string) Level + func (level Level) String() string + type Logger struct + Level Level + func NewLogger() *Logger + func (logger *Logger) Critical(ctx context.Context, format string, args ...interface{}) + func (logger *Logger) Debug(ctx context.Context, format string, args ...interface{}) + func (logger *Logger) Error(ctx context.Context, format string, args ...interface{}) + func (logger *Logger) HideCallstack() *Logger + func (logger *Logger) Info(ctx context.Context, format string, args ...interface{}) + func (logger *Logger) SetLevel(level Level) + func (logger *Logger) SetLevelByString(level string) + func (logger *Logger) SetOutput(output io.Writer) *Logger + func (logger *Logger) Warn(ctx context.Context, format string, args ...interface{}) + func (logger *Logger) WithDepth(depth int) *Logger v0.0.1 Jul 28, 2023 Changes in this version + const ProtocolVersion + type AuthRequest struct + Hash []byte + Md5 []byte + func (s *AuthRequest) Serialize() ([]byte, error) + type AuthResponse struct + Hash []byte + Md5 []byte + func (r *AuthResponse) DeSerialize(input []byte) error + func (r *AuthResponse) String() string + type CmdRequest struct + Auth *AuthRequest + Ctrl *CtrlRequest + Data *DataRequest + func (s *CmdRequest) Serialize() ([]byte, error) + type CmdResponse struct + Auth *AuthResponse + Ctrl *CtrlResponse + Data *DataResponse + func (r *CmdResponse) DeSerialize(input []byte) error + func (r *CmdResponse) String() string + type CtrlRequest struct + Exp string + Nonce string + Ser string + Tim string + func (c *CtrlRequest) Serialize() ([]byte, error) + type CtrlResponse struct + Exp string + Nonce string + Rpl string + Ser string + Tim string + func (r *CtrlResponse) DeSerialize(input []byte) error + func (r *CtrlResponse) String() string + type DataRequest struct + Type string + func (s *DataRequest) Serialize() ([]byte, error) + type DataResponse struct + Err string + Result string + Text string + Type string + func (r *DataResponse) DeSerialize(input []byte) error + func (r *DataResponse) String() string + type RnDC struct + func NewRNDCClient(host, algo, secret string) (*RnDC, error) + func (c *RnDC) Call(cmd string) (*CmdResponse, error) + type Serializable interface + Serialize func() ([]byte, error)