...

Package sse

Overview ▾

type Event

type Event struct {
    // contains filtered or unexported fields
}

type EventType

type EventType int
const (
    Heartbeat EventType = iota + 1
    DevfileUpdated
)

type Notifier

type Notifier struct {
    // contains filtered or unexported fields
}

func NewNotifier

func NewNotifier(ctx context.Context, fsys filesystem.Filesystem, devfilePath string, devfileFiles []string) (*Notifier, error)

func (*Notifier) Routes

func (n *Notifier) Routes() openapi.Routes