Versions in this module Expand all Collapse all v0 v0.1.0 Oct 23, 2026 Changes in this version + var ErrBlocked = errors.New("dtekkrem: request was blocked by the site's bot protection") + var ErrUnknownCity = errors.New("dtekkrem: city not found") + var ErrUnknownHouse = errors.New("dtekkrem: house not found") + var ErrUnknownStreet = errors.New("dtekkrem: street not found") + type Address struct + City string + House string + Street string + type Client struct + func NewClient(opts ...Option) *Client + func (c *Client) Close() + func (c *Client) Lookup(ctx context.Context, addr Address) (*Result, error) + func (c *Client) Streets(ctx context.Context) (map[string][]string, error) + type Day struct + Date time.Time + Hours [24]Status + type Group struct + Days []Day + ID string + Name string + func (g Group) Outages() []Interval + type Interval struct + End time.Time + Maybe bool + Start time.Time + type Option func(*Client) + func WithAllocatorOptions(opts ...chromedp.ExecAllocatorOption) Option + func WithTimeout(d time.Duration) Option + type Outage struct + End time.Time + Planned bool + Reason string + Start time.Time + func (o *Outage) IsEmergency() bool + type Result struct + Address Address + Groups []Group + Outage *Outage + ScheduleUpdatedAt time.Time + UpdatedAt time.Time + type Status string + const StatusMaybe + const StatusMaybeFirstHalf + const StatusMaybeSecondHalf + const StatusOff + const StatusOffFirstHalf + const StatusOffSecondHalf + const StatusOn