Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContext ¶
WithContext returns a derived ctx with the ConnectorInfo value stored in it.
Types ¶
type ConnectorInfo ¶
type ConnectorInfo struct {
ID string
ClientID string
TenantID string
SourceType SourceType
SourceID string
}
ConnectorInfo carries information about the on-premises connector, such as its ID, and the source it belongs to, for communication purposes.
func FromContext ¶
func FromContext(ctx context.Context) (v ConnectorInfo, ok bool)
FromContext returns the ConnectorInfo value stored in the ctx, if any.
type SourceType ¶
type SourceType int
SourceType identifies a particular source as a datasource or an integration.
const ( Unknown SourceType = iota Datasource Integration )
Click to show internal directories.
Click to hide internal directories.