notification package

import "code.pfad.fr/gohmekit/hapip/notification"

Index

type Coalescer

Coalescer allows event to be merged together to prevent sending too many events in a short time.

type Manager

Manager manages notifications. m.ConnContext & m.ConnState must be registered on the http.Server respective fields.

func (*Manager[Key]) ConnContext

func (*Manager[Key]) ConnState

func (*Manager[Key]) HookConnEvents

func (*Manager[Key]) IsSubscribed

func (*Manager[Key]) Publish

Publish an event. If the event is a Coalescer it might be throtteled.

func (*Manager[Key]) Subscribe

Source Files

manager.go