all repos — homestead @ 90a4ac43b915abb7a2949f4b5313b40d705b6071

Code for my website

internal/events/update.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package events

import (
	"github.com/fsnotify/fsnotify"
	"gitlab.com/tozd/go/errors"
)

type CIEvent struct {
	RunID uint64
}

type FSEvent struct {
	Events map[string]fsnotify.Op
}

type Event struct {
	CIEvent
	FSEvent
}

type Listener interface {
	GetLatestRunID() (uint64, errors.E)
	Subscribe() (<-chan Event, errors.E)
}