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 {
Timestamp time.Time
Checksum string
Format string
Source string
Data []byte
}
ChangeSet represents a set of changes from a source.
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 ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
broker/memory
module
|
|
|
cmd
module
|
|
|
codec
module
|
|
|
codec/bytes
module
|
|
|
codec/grpc
module
|
|
|
codec/json
module
|
|
|
codec/jsonrpc
module
|
|
|
codec/proto
module
|
|
|
codec/protorpc
module
|
|
|
codec
module
|
|
|
bytes
module
|
|
|
grpc
module
|
|
|
json
module
|
|
|
jsonrpc
module
|
|
|
proto
module
|
|
|
protorpc
module
|
|
|
configmap
module
|
|
|
client/rpc
module
|
|
|
consul
module
|
|
|
encoder
module
|
|
|
yaml
module
|
|
|
envvar
module
|
|
|
etcd
module
|
|
|
Package file is a file source.
|
Package file is a file source. |
|
broker
module
|
|
|
broker/http
module
|
|
|
broker/memory
module
|
|
|
client
module
|
|
|
client/mock
module
|
|
|
client/rpc
module
|
|
|
cmd
module
|
|
|
cmd/codec/jsonrpc
module
|
|
|
codec
module
|
|
|
codec/grpc
module
|
|
|
codec/json
module
|
|
|
codec/jsonrpc
module
|
|
|
codec/proto
module
|
|
|
codec/protorpc
module
|
|
|
config
module
|
|
|
metadata
module
|
|
|
registry
module
|
|
|
registry/consul
module
|
|
|
registry/gossip
module
|
|
|
registry/gossip/proto
module
|
|
|
registry/mdns
module
|
|
|
selector
module
|
|
|
selector/dns
module
|
|
|
selector/registry
module
|
|
|
selector/static
module
|
|
|
server
module
|
|
|
server/rpc
module
|
|
|
transport
module
|
|
|
registry/mdns
module
|
|
|
server
module
|
|
|
server/rpc
module
|
|
|
grpc
module
|
|
|
Package memory is a memory source
|
Package memory is a memory source |
|
broker
module
|
|
|
broker/http
module
|
|
|
broker/memory
module
|
|
|
nacos
module
|
|
|
client/mock
module
|
|
|
selector/static
module
|
|
|
reader
module
|
|
|
service
module
|
|
|
codec/protorpc
module
|
|
|
proto
module
|
|
|
toml
module
|
|
|
url
module
|
|
|
yaml
module
|
|
|
server/rpc
module
|
Click to show internal directories.
Click to hide internal directories.