Documentation
¶
Index ¶
- type DefaultSourceTuple
- func (t *DefaultSourceTuple) AllMeta() map[string]any
- func (t *DefaultSourceTuple) Meta(key, table string) (any, bool)
- func (t *DefaultSourceTuple) Range(f func(key string, value any) bool)
- func (t *DefaultSourceTuple) Raw() []byte
- func (t *DefaultSourceTuple) Timestamp() time.Time
- func (t *DefaultSourceTuple) ToMap() map[string]any
- func (t *DefaultSourceTuple) Value(key, table string) (any, bool)
- type EncryptionConf
- type IndexValuer
- type InfoNode
- type KuiperConf
- type MetricsDumpConfig
- type NodeInfo
- type OpenTelemetry
- type PropsConsumer
- type ResourceProfileConfig
- type SQLConf
- type SecurityConf
- type SinkConf
- type SinkInfo
- type SinkInfoNode
- type SliceVal
- type SourceConf
- type StreamReader
- type StreamWriter
- type SyslogConf
- type TlsConf
- type TlsConfigurationOptions
- type TlsKeys
- type UniqueConn
- type UniqueSub
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultSourceTuple ¶
type DefaultSourceTuple struct {
// contains filtered or unexported fields
}
func NewDefaultRawTuple ¶
NewDefaultRawTuple creates a new DefaultSourceTuple with raw data. Use this when extend source connector
func NewDefaultRawTupleIgnoreTs ¶
func NewDefaultRawTupleIgnoreTs(raw []byte, meta map[string]any) *DefaultSourceTuple
func NewDefaultSourceTuple ¶
func (*DefaultSourceTuple) AllMeta ¶
func (t *DefaultSourceTuple) AllMeta() map[string]any
func (*DefaultSourceTuple) Range ¶
func (t *DefaultSourceTuple) Range(f func(key string, value any) bool)
func (*DefaultSourceTuple) Raw ¶
func (t *DefaultSourceTuple) Raw() []byte
func (*DefaultSourceTuple) Timestamp ¶
func (t *DefaultSourceTuple) Timestamp() time.Time
func (*DefaultSourceTuple) ToMap ¶
func (t *DefaultSourceTuple) ToMap() map[string]any
type EncryptionConf ¶ added in v2.2.0
type IndexValuer ¶ added in v2.3.0
type InfoNode ¶
InfoNode explain the node itself. Mainly used for planner to decide the split of source/sink
type KuiperConf ¶ added in v2.2.0
type KuiperConf struct {
Hack struct {
Cold bool `yaml:"cold"`
}
Basic struct {
LogLevel string `yaml:"logLevel"`
Debug bool `yaml:"debug"`
ConsoleLog bool `yaml:"consoleLog"`
FileLog bool `yaml:"fileLog"`
LogDisableTimestamp bool `yaml:"logDisableTimestamp"`
Syslog *SyslogConf `yaml:"syslog"`
RotateTime int `yaml:"rotateTime"`
MaxAge int `yaml:"maxAge"`
RotateSize int64 `yaml:"rotateSize"`
RotateCount int `yaml:"rotateCount"`
TimeZone string `yaml:"timezone"`
Ip string `yaml:"ip"`
Port int `yaml:"port"`
RestIp string `yaml:"restIp"`
RestPort int `yaml:"restPort"`
RestTls *TlsConf `yaml:"restTls"`
Prometheus bool `yaml:"prometheus"`
PrometheusPort int `yaml:"prometheusPort"`
Pprof bool `yaml:"pprof"`
PprofIp string `yaml:"pprofIp"`
PprofPort int `yaml:"pprofPort"`
PluginHosts string `yaml:"pluginHosts"`
Authentication bool `yaml:"authentication"`
IgnoreCase bool `yaml:"ignoreCase"`
SQLConf *SQLConf `yaml:"sql"`
RulePatrolInterval cast.DurationConf `yaml:"rulePatrolInterval"`
EnableOpenZiti bool `yaml:"enableOpenZiti"`
AesKey string `yaml:"aesKey"`
GracefulShutdownTimeout cast.DurationConf `yaml:"gracefulShutdownTimeout"`
ResourceProfileConfig ResourceProfileConfig `yaml:"ResourceProfileConfig"`
MetricsDumpConfig MetricsDumpConfig `yaml:"metricsDumpConfig"`
EnableRestAuditLog bool `yaml:"enableRestAuditLog"`
}
Rule def.RuleOption
Sink *SinkConf
Source *SourceConf
Store struct {
Type string `yaml:"type"`
ExtStateType string `yaml:"extStateType"`
Redis struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Password string `yaml:"password"`
Timeout cast.DurationConf `yaml:"timeout"`
ConnectionSelector string `yaml:"connectionSelector"`
}
Sqlite struct {
Name string `yaml:"name"`
}
Fdb struct {
Path string `yaml:"path"`
}
}
Portable struct {
PythonBin string `yaml:"pythonBin"`
InitTimeout cast.DurationConf `yaml:"initTimeout"`
SendTimeout time.Duration `yaml:"sendTimeout"`
RecvTimeout time.Duration `yaml:"recvTimeout"`
}
Connection struct {
BackoffMaxElapsedDuration cast.DurationConf `yaml:"backoffMaxElapsedDuration"`
}
OpenTelemetry OpenTelemetry `yaml:"openTelemetry"`
AesKey []byte
Security *SecurityConf
}
func (*KuiperConf) PprofSameAsRest ¶ added in v2.2.3
func (k *KuiperConf) PprofSameAsRest() bool
type MetricsDumpConfig ¶ added in v2.2.0
type OpenTelemetry ¶ added in v2.2.0
type PropsConsumer ¶ added in v2.1.1
PropsConsumer Read in properties, swallow some and return new props
type ResourceProfileConfig ¶ added in v2.2.0
type SecurityConf ¶ added in v2.2.0
type SecurityConf struct {
Encryption *EncryptionConf `yaml:"encryption,omitempty"`
Tls *TlsConfigurationOptions `yaml:"tls,omitempty"`
}
type SinkConf ¶ added in v2.2.0
type SinkConf struct {
MemoryCacheThreshold int `json:"memoryCacheThreshold" yaml:"memoryCacheThreshold"`
MaxDiskCache int `json:"maxDiskCache" yaml:"maxDiskCache"`
BufferPageSize int `json:"bufferPageSize" yaml:"bufferPageSize"`
EnableCache bool `json:"enableCache" yaml:"enableCache"`
ResendInterval cast.DurationConf `json:"resendInterval" yaml:"resendInterval"`
CleanCacheAtStop bool `json:"cleanCacheAtStop" yaml:"cleanCacheAtStop"`
ResendAlterQueue bool `json:"resendAlterQueue" yaml:"resendAlterQueue"`
ResendPriority int `json:"resendPriority" yaml:"resendPriority"`
ResendIndicatorField string `json:"resendIndicatorField" yaml:"resendIndicatorField"`
ResendDestination string `json:"resendDestination" yaml:"resendDestination"`
}
type SinkInfoNode ¶ added in v2.1.0
type SinkInfoNode interface {
Info() SinkInfo
}
type SliceVal ¶ added in v2.3.0
type SliceVal []any
SliceVal this is the content type for slice tuple
type SourceConf ¶ added in v2.2.0
type StreamReader ¶
type StreamWriter ¶
type SyslogConf ¶ added in v2.2.0
type SyslogConf struct {
Enable bool `yaml:"enable"`
Network string `yaml:"network"`
Address string `yaml:"address"`
Tag string `yaml:"tag"`
Level string `yaml:"level"`
}
func (*SyslogConf) Validate ¶ added in v2.2.0
func (s *SyslogConf) Validate() error
type TlsConfigurationOptions ¶ added in v2.2.0
type TlsConfigurationOptions struct {
SkipCertVerify bool `json:"insecureSkipVerify" yaml:"insecureSkipVerify"`
CertificationRaw string `json:"certificationRaw" yaml:"certificationRaw"`
PrivateKeyRaw string `json:"privateKeyRaw" yaml:"privateKeyRaw"`
RootCARaw string `json:"rootCARaw" yaml:"rootCARaw"`
CertFile string `json:"certificationPath" yaml:"certificationPath"`
KeyFile string `json:"privateKeyPath" yaml:"privateKeyPath"`
CaFile string `json:"rootCaPath" yaml:"rootCaPath"`
TLSMinVersion string `json:"tlsMinVersion" yaml:"tlsMinVersion"`
RenegotiationSupport string `json:"renegotiationSupport" yaml:"renegotiationSupport"`
Decrypt *EncryptionConf `json:"decrypt" yaml:"decrypt,omitempty"`
// whether use default tls setting
Tls string `json:"tls"`
}
func (*TlsConfigurationOptions) GenKeys ¶ added in v2.2.0
func (opts *TlsConfigurationOptions) GenKeys() (*TlsKeys, error)
type UniqueConn ¶
Click to show internal directories.
Click to hide internal directories.