Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigPath = "conf/conf.yaml"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct {
PulsarServiceURL string `json:"pulsarServiceURL" yaml:"pulsarServiceURL"`
InstanceID int `json:"instanceID" yaml:"instanceID"`
FuncID string `json:"funcID" yaml:"funcID"`
FuncVersion string `json:"funcVersion" yaml:"funcVersion"`
MaxBufTuples int `json:"maxBufTuples" yaml:"maxBufTuples"`
Port int `json:"port" yaml:"port"`
ClusterName string `json:"clusterName" yaml:"clusterName"`
KillAfterIdleMs time.Duration `json:"killAfterIdleMs" yaml:"killAfterIdleMs"`
Token string `json:"token" yaml:"token"`
// function details config
Tenant string `json:"tenant" yaml:"tenant"`
NameSpace string `json:"nameSpace" yaml:"nameSpace"`
Name string `json:"name" yaml:"name"`
LogTopic string `json:"logTopic" yaml:"logTopic"`
ProcessingGuarantees int32 `json:"processingGuarantees" yaml:"processingGuarantees"`
SecretsMap string `json:"secretsMap" yaml:"secretsMap"`
Runtime int32 `json:"runtime" yaml:"runtime"`
AutoACK bool `json:"autoAck" yaml:"autoAck"`
Parallelism int32 `json:"parallelism" yaml:"parallelism"`
//source config
SubscriptionType int32 `json:"subscriptionType" yaml:"subscriptionType"`
TimeoutMs uint64 `json:"timeoutMs" yaml:"timeoutMs"`
SubscriptionName string `json:"subscriptionName" yaml:"subscriptionName"`
CleanupSubscription bool `json:"cleanupSubscription" yaml:"cleanupSubscription"`
SubscriptionPosition int32 `json:"subscriptionPosition" yaml:"subscriptionPosition"`
//source input specs
SourceSpecTopic string `json:"sourceSpecsTopic" yaml:"sourceSpecsTopic"`
SourceSchemaType string `json:"sourceSchemaType" yaml:"sourceSchemaType"`
IsRegexPatternSubscription bool `json:"isRegexPatternSubscription" yaml:"isRegexPatternSubscription"`
ReceiverQueueSize int32 `json:"receiverQueueSize" yaml:"receiverQueueSize"`
//sink spec config
SinkSpecTopic string `json:"sinkSpecsTopic" yaml:"sinkSpecsTopic"`
SinkSchemaType string `json:"sinkSchemaType" yaml:"sinkSchemaType"`
//resources config
Cpu float64 `json:"cpu" yaml:"cpu"`
Ram int64 `json:"ram" yaml:"ram"`
Disk int64 `json:"disk" yaml:"disk"`
//retryDetails config
MaxMessageRetries int32 `json:"maxMessageRetries" yaml:"maxMessageRetries"`
DeadLetterTopic string `json:"deadLetterTopic" yaml:"deadLetterTopic"`
ExpectedHealthCheckInterval int32 `json:"expectedHealthCheckInterval" yaml:"expectedHealthCheckInterval"`
UserConfig string `json:"userConfig" yaml:"userConfig"`
//metrics config
MetricsPort int `json:"metricsPort" yaml:"metricsPort"`
}
Click to show internal directories.
Click to hide internal directories.