-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1562 from memphisdev/RND-392-redis-connector-ui
RND-392-redis-connector-ui
- Loading branch information
Showing
4 changed files
with
113 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
import S3LogoIcon from './assets/s3LogoIcon.svg'; | ||
import KafkaIcon from './assets/kafkaIcon.svg'; | ||
import KinesisIcon from './assets/awsKinesis.svg'; | ||
import RedisIcon from './assets/redisIcon.svg'; | ||
|
||
import { kafka } from './kafka'; | ||
import { kinesis } from './kinesis'; | ||
import { redis } from './redis'; | ||
|
||
export const connectorTypes = [ | ||
export const connectorTypesSource = [ | ||
{ name: 'Kafka', icon: KafkaIcon, comment: 'Supported version: 0.9 and above', inputs: kafka }, | ||
// { name: 'kinesis', icon: KinesisIcon, inputs: kinesis }, | ||
{ name: 'S3', icon: S3LogoIcon, disabled: true, soon: true } | ||
]; | ||
|
||
export const connectorTypesSink = [ | ||
{ name: 'Kafka', icon: KafkaIcon, comment: 'Supported version: 0.9 and above', inputs: kafka }, | ||
{ name: 'Redis', icon: RedisIcon, inputs: redis }, | ||
{ name: 'S3', icon: S3LogoIcon, disabled: true, soon: true } | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
export const redis = { | ||
Sink: [ | ||
{ | ||
name: 'name', | ||
display: 'Connector name', | ||
type: 'string', | ||
required: true, | ||
description: 'Note that the sink connector name is also consumer group name' | ||
}, | ||
{ | ||
name: 'redis_type', | ||
display: 'Type', | ||
type: 'select', | ||
options: ['KV'], | ||
required: true | ||
// placeholder: 'type' | ||
}, | ||
{ | ||
name: 'addr', | ||
display: 'Addr', | ||
type: 'string', | ||
placeholder: 'host:port', | ||
required: true, | ||
description: '', | ||
children: false | ||
}, | ||
{ | ||
name: 'username', | ||
display: 'Username', | ||
type: 'string', | ||
required: false | ||
}, | ||
{ | ||
name: 'password', | ||
display: 'Password', | ||
type: 'string', | ||
required: false | ||
}, | ||
{ | ||
name: 'db', | ||
display: 'DB', | ||
type: 'string', | ||
required: true, | ||
placeholder: 0, | ||
description: 'The Redis database number to use' | ||
}, | ||
{ | ||
name: 'key_header', | ||
display: 'Key header', | ||
description: 'The name of the header in Memphis message, to take the Redis key from', | ||
type: 'string', | ||
required: true | ||
}, | ||
{ | ||
name: 'memphis_batch_size', | ||
display: 'Memphis batch size (messages)', | ||
type: 'string', | ||
required: false, | ||
placeholder: 100, | ||
description: 'The buffer size used by Memphis to accumulate and handle incoming messages before processing' | ||
}, | ||
{ | ||
name: 'memphis_max_time_wait', | ||
display: 'Max time to wait for a batch of messages (seconds)', | ||
placeholder: 2, | ||
type: 'string', | ||
required: false, | ||
description: 'The duration which a batch of messages is awaited till processing' | ||
} | ||
] | ||
}; |