subject
v0.0.0-20240711162211-159a3375b30a
taylz.io/http/websocket/subject
Documentation
pkg.go.dev ↗Types
SubKey
type SubKey uint
T
type T[D any] struct {
Name string
// contains filtered or unexported fields
}
T[D].Current
func (t *T[D]) Current() (d D)
T[D].Subscribe
func (t *T[D]) Subscribe(callback func(D) error) (k SubKey)
T[D].Unsubscribe
func (t *T[D]) Unsubscribe(k SubKey)
T[D].Update
func (t *T[D]) Update(data D)
T[D].Version
func (t *T[D]) Version() int