Versions in this module Expand all Collapse all v0 v0.1.1 Jul 9, 2023 v0.1.0 Jul 8, 2023 Changes in this version + var ErrFlasherUnsupported = errors.New("the flusher is not supported") + func Plugin(outdir string, writer Writer, options ...PluginOptionFn) (api.Plugin, error) + func Serve(buildOptions api.BuildOptions, options ...PluginOptionFn) (http.Handler, http.Handler, error) + type FS struct + func New() *FS + func (fsys *FS) Open(name string) (fs.File, error) + func (fsys *FS) Write(name string, content io.Reader) error + type Notifier interface + NotifyChanged func(updated []string) error + type PluginOptionFn = func(*fsPlugin) + func WithNotifier(notifier Notifier) PluginOptionFn + func WithPrefix(prefix string) PluginOptionFn + type ServerSentEventHandler struct + func NewSSE() *ServerSentEventHandler + func (s *ServerSentEventHandler) Broadcast(event, data string) + func (s *ServerSentEventHandler) NewStream() chan serverSentEvent + func (s *ServerSentEventHandler) NotifyChanged(updated []string) error + func (s *ServerSentEventHandler) RemoveStream(stream chan serverSentEvent) + func (s *ServerSentEventHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) + type Writer interface + Write func(name string, content io.Reader) error