Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultEventTypeCreate = iota DefaultEventTypeModify = 1 DefaultEventTypeDelete = 2 DefaultEventTypeReady = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultEventType ¶ added in v0.0.5
type DefaultEventType int32
type Event ¶
type Event[T any] struct { EventType T }
Event is a struct that represents a single event. It is a generic struct that can be cast to a more specific struct.
type FilePathSync ¶
type FilePathSync struct { URI string Logger *log.Entry ProviderArgs ProviderArgs }
func (*FilePathSync) Source ¶ added in v0.2.2
func (fs *FilePathSync) Source() string
type HTTPClient ¶ added in v0.0.6
HTTPClient defines the behaviour required of a http client
type HTTPSync ¶ added in v0.0.3
type HTTPSync struct { URI string Client HTTPClient Cron Cron BearerToken string LastBodySHA string Logger *log.Entry ProviderArgs ProviderArgs }
type INotify ¶
type INotify interface {
GetEvent() Event[DefaultEventType]
}
type Notifier ¶
type Notifier struct {
Event Event[DefaultEventType]
}
func (*Notifier) GetEvent ¶
func (w *Notifier) GetEvent() Event[DefaultEventType]
type ProviderArgs ¶ added in v0.1.0
Directories ¶
Path | Synopsis |
---|---|
Package syncmock is a generated GoMock package.
|
Package syncmock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.