Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentEvent ¶
type EventHandler ¶
type EventHandler interface { OnEvent(ev ContentEvent) error Close() error }
type EventHandlerFunc ¶
type EventHandlerFunc func(ev ContentEvent) error
func (EventHandlerFunc) OnEvent ¶
func (f EventHandlerFunc) OnEvent(ev ContentEvent) error
type EventHub ¶
type EventHub struct { FileNameHash hash.Hash Logger *log.Logger // contains filtered or unexported fields }
func NewEventHub ¶
func NewEventHub(logger *log.Logger, eventSource EventSource, fileNameHash hash.Hash, mutations ...EventMutation) *EventHub
type EventMutation ¶
type EventMutation interface {
OnEvent(in ContentEvent, ev fs.Event) (out ContentEvent)
}
type MutationConfigReloadForFile ¶
type MutationConfigReloadForFile string
func (MutationConfigReloadForFile) OnEvent ¶
func (t MutationConfigReloadForFile) OnEvent(in ContentEvent, ev fs.Event) (out ContentEvent)
type MutationReloadForFile ¶
type MutationReloadForFile string
func (MutationReloadForFile) OnEvent ¶
func (t MutationReloadForFile) OnEvent(in ContentEvent, ev fs.Event) (out ContentEvent)
Click to show internal directories.
Click to hide internal directories.