Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultEventTypeCreate = iota DefaultEventTypeModify = 1 DefaultEventTypeDelete = 2 DefaultEventTypeReady = 3 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultEventType ¶
type DefaultEventType int32
type Event ¶
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 ¶
type INotify interface {
GetEvent() Event[DefaultEventType]
}
type Notifier ¶
type Notifier struct {
Event Event[DefaultEventType]
}
func (*Notifier) GetEvent ¶
func (w *Notifier) GetEvent() Event[DefaultEventType]
Click to show internal directories.
Click to hide internal directories.