💾 Archived View for code.pfad.fr › gohmekit › contrib › fake captured on 2023-06-16 at 16:22:21. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-04-26)

➡️ Next capture (2024-07-09)

-=-=-=-=-=-=-

fake package

import "code.pfad.fr/gohmekit/contrib/fake"

Functions

func NewDoorbell

func NewDoorbell(info accessory.Basic, imageResource func(w, h int, ringedAgo time.Duration) ([]byte, error)) (accessory.WithResource, func(characteristic.ProgrammableSwitchEvent_Type))

Types

type JPEGCache

type JPEGCache[Parameter comparable] struct {
	Original func(p Parameter) (image.Image, error)
	// contains filtered or unexported fields
}

func (*JPEGCache[Parameter]) GetImage

func (j *JPEGCache[Parameter]) GetImage(w, h int, p Parameter) ([]byte, error)

Files

camera_rtp_stream_management_service.go

doorbell.go

image.go

Forge

https://codeberg.org/pfad.fr/gohmekit

git clone

https://codeberg.org/pfad.fr/gohmekit
git@codeberg.org:pfad.fr/gohmekit