dynamics365

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 NewSource

func NewSource(config SourceConfig, logger hermod.Logger) *Source

func (*Source) Ack

func (s *Source) Ack(ctx context.Context, msg hermod.Message) error

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.

func (*Source) Close

func (s *Source) Close() error

func (*Source) GetState

func (s *Source) GetState() map[string]string

func (*Source) Name

func (s *Source) Name() string

func (*Source) Ping

func (s *Source) Ping(ctx context.Context) error

func (*Source) Read

func (s *Source) Read(ctx context.Context) (hermod.Message, error)

func (*Source) SetState

func (s *Source) SetState(state map[string]string)

type SourceConfig

type SourceConfig struct {
	Resource     string `json:"resource"`      // e.g. https://org.crm.dynamics.com
	TenantID     string `json:"tenant_id"`     // Microsoft Entra Tenant ID
	ClientID     string `json:"client_id"`     // App Registration Client ID
	ClientSecret string `json:"client_secret"` // App Registration Client Secret
	Entity       string `json:"entity"`        // OData Entity Set Name (e.g., "accounts")
	PollInterval string `json:"poll_interval"` // e.g., "1m"
	Filter       string `json:"filter"`        // OData $filter expression
	IDField      string `json:"id_field"`      // Field to use for delta tracking (e.g., "modifiedon")
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL