Documentation
¶
Overview ¶
Package repositoryevents receives provider-owned repository events and turns them into durable local sync jobs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CursorStore ¶
type CursorStore struct{ Path string }
type ProcessResult ¶
type ProcessState ¶
type Processor ¶
type Processor interface {
Process(context.Context, repositoryevent.Event, ProcessState) (ProcessResult, error)
}
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
type Receiver ¶
type Receiver struct {
Source Source
Queue Enqueuer
Cursor CursorStore
PollWait time.Duration
RetryDelay time.Duration
Progress func(string)
ProgressEvery time.Duration
}
func (Receiver) ReceiveOnce ¶
type Source ¶
type Source interface {
PollRepositoryEvents(context.Context, string, int, time.Duration) (repositoryevent.PollResponse, error)
AckRepositoryEvents(context.Context, repositoryevent.AckRequest) (repositoryevent.AckResponse, error)
}
type SyncProcessor ¶
type SyncProcessor struct {
ProjectsRoot string
// contains filtered or unexported fields
}
func (SyncProcessor) Process ¶
func (processor SyncProcessor) Process(ctx context.Context, event repositoryevent.Event, state ProcessState) (ProcessResult, error)
Click to show internal directories.
Click to hide internal directories.