Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultEventTypeCreate = iota DefaultEventTypeModify = 1 DefaultEventTypeDelete = 2 DefaultEventTypeReady = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultEventType ¶ added in v0.3.2
type DefaultEventType int32
type Event ¶ added in v0.3.2
type Event[T any] struct { EventType T }
Event is a struct that represents a single event. It is a generic struct that can be cast to a more specific struct.
type INotify ¶ added in v0.3.2
type INotify interface {
GetEvent() Event[DefaultEventType]
}
type Notifier ¶ added in v0.3.2
type Notifier struct {
Event Event[DefaultEventType]
}
func (*Notifier) GetEvent ¶ added in v0.3.2
func (w *Notifier) GetEvent() Event[DefaultEventType]
Click to show internal directories.
Click to hide internal directories.