connector

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: Apache-2.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext

func WithContext(parent context.Context, val ConnectorInfo) (context.Context, error)

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
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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