Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CallBackTypeError = errors.New(`checkIsSlice:dest must be a struct pointer`)
Functions ¶
func Subs ¶
func Subs[T Subscriber](receiver any, f func(cb T))
Types ¶
type GoPusher ¶ added in v0.0.5
type GoPusher struct {
// contains filtered or unexported fields
}
func (*GoPusher) ReportEventCompleted ¶ added in v0.1.1
func (*GoPusher) ReportEventRegistered ¶ added in v0.1.1
func (*GoPusher) ReportEventStart ¶ added in v0.1.1
type Pusher ¶ added in v0.0.5
type Subscriber ¶ added in v0.0.5
type Subscriber interface { Bind(data any) error Set(data any) Subscriber }
type SubscriberCallBackImpl ¶ added in v0.0.5
type SubscriberCallBackImpl struct {
Data any
}
func (SubscriberCallBackImpl) Bind ¶ added in v0.0.5
func (s SubscriberCallBackImpl) Bind(data any) error
func (SubscriberCallBackImpl) Set ¶ added in v0.0.6
func (s SubscriberCallBackImpl) Set(data any) Subscriber
Click to show internal directories.
Click to hide internal directories.