all repos — homestead @ f17c0bd9ce8ad16b39c9c5ba80c917049e135bed

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
package events

import "github.com/fsnotify/fsnotify"

type CIEvent struct {
	RunID uint64
}

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

type Event struct {
	CIEvent
	FSEvent
}

type Listener interface {
	GetLatestRunID() (uint64, error)
	Subscribe() (<-chan Event, error)
}