Documentation
¶
Index ¶
- type Source
- func (s *Source) Ack(ctx context.Context, msg hermod.Message) error
- func (s *Source) Close() error
- func (s *Source) GetState() map[string]string
- func (s *Source) Name() string
- func (s *Source) Ping(ctx context.Context) error
- func (s *Source) Read(ctx context.Context) (hermod.Message, error)
- func (s *Source) SetState(state map[string]string)
- type SourceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func (*Source) Ack ¶
Ack moves the persisted cursor to the acknowledged record. It must not move on read: GetState is the engine's persistence contract, so a cursor advanced when a record is handed out is already past records still in flight, and a crash before the sinks wrote them erases them from the resume.
type SourceConfig ¶
type SourceConfig struct {
Host string `json:"host"`
Client string `json:"client"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
Service string `json:"service"` // OData Service
Entity string `json:"entity"` // OData Entity
PollInterval string `json:"poll_interval"`
Filter string `json:"filter,omitempty"` // OData $filter
IDField string `json:"id_field,omitempty"` // Field to use for delta tracking
}
Click to show internal directories.
Click to hide internal directories.