Versions in this module Expand all Collapse all v1 v1.3.0 Aug 18, 2026 Changes in this version + func Header(hostname string) callx.Header + type Account struct + CustomerCode string + CustomerId string + Header callx.Header + MeterNo string + MeterPoint string + type AmrX interface + Auth func(config Credential) (*Session, error) + GetAccount func(session Session) (*Account, error) + GetProfileDaily func(acc Account, date string) (*ProfileMeter, error) + Logout func() error + PasswordRotation func(config PasswordRotationCredential, header *callx.Header) (*Session, error) + func New(config Config, callX callx.CallX) AmrX + type Config struct + BaseURL string + Logger bool + func (c Config) Hostname() string + type Credential struct + Password string + Username string + func (c *Credential) Checksum() string + type Logger struct + Enabled bool + func (l Logger) Error(msg string, args ...any) + func (l Logger) Fatal(v ...any) + func (l Logger) Info(msg string, args ...any) + func (l Logger) Warn(msg string, args ...any) + type PasswordRotationCredential struct + NewPassword string + OldPassword string + Username string + type Profile struct + EnergyConsumption *float64 + Time *time.Time + type ProfileMeter struct + CustomerCode string + CustomerId string + MeterNo string + MeterPoint string + Profile []Profile + type Session struct + Header callx.Header + Username string