Versions in this module Expand all Collapse all v0 v0.0.1 Jul 12, 2021 Changes in this version + type Action interface + Status func(mac string, found bool) + type ActionFunc func(mac string, found bool) + func (a ActionFunc) Status(mac string, found bool) + type BluetoothScanner interface + IsPresent func(context context.Context, mac string) (bool, error) + type HCITool struct + func NewHCITool() (*HCITool, error) + func (h *HCITool) IsPresent(ctx context.Context, mac string) (bool, error) + type Presence struct + func New(btScanner BluetoothScanner) *Presence + func (p *Presence) RegisterAction(mac string, actions ...Action) + func (p *Presence) Scan(ctx context.Context) + func (p *Presence) ScanPeriodically(ctx context.Context, interval time.Duration) + func (p *Presence) UnregisterActions(mac string)