Documentation ¶
Overview ¶
Package source is the interface for sources
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrWatcherStopped is returned when source watcher has been stopped ErrWatcherStopped = errors.New("watcher stopped") )
Functions ¶
This section is empty.
Types ¶
type ChangeSet ¶
type ChangeSet struct { Data []byte Checksum string Format string Source string Timestamp time.Time }
ChangeSet represents a set of changes from a source
type Option ¶
type Option func(o *Options)
func WithClient ¶ added in v2.7.0
WithClient sets the source client
type Options ¶
type Options struct { // Encoder Encoder encoder.Encoder // for alternative data Context context.Context // Client to use for RPC Client client.Client }
func NewOptions ¶
Click to show internal directories.
Click to hide internal directories.