2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2019-11-01 00:42:14 -07:00
|
|
|
|
|
|
|
export class Amqp implements ICredentialType {
|
|
|
|
name = 'amqp';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2019-11-01 00:42:14 -07:00
|
|
|
displayName = 'AMQP';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2020-08-17 05:42:09 -07:00
|
|
|
documentationUrl = 'amqp';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2019-11-01 05:50:33 -07:00
|
|
|
{
|
|
|
|
displayName: 'Hostname',
|
|
|
|
name: 'hostname',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2024-07-12 07:56:40 -07:00
|
|
|
placeholder: 'e.g. localhost',
|
2019-11-01 05:50:33 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Port',
|
|
|
|
name: 'port',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'number',
|
2019-11-01 05:50:33 -07:00
|
|
|
default: 5672,
|
|
|
|
},
|
2019-11-01 00:42:14 -07:00
|
|
|
{
|
|
|
|
displayName: 'User',
|
|
|
|
name: 'username',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2024-07-12 07:56:40 -07:00
|
|
|
placeholder: 'e.g. guest',
|
2019-11-01 00:42:14 -07:00
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
displayName: 'Password',
|
|
|
|
name: 'password',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2024-07-12 07:56:40 -07:00
|
|
|
placeholder: 'e.g. guest',
|
2019-11-01 00:42:14 -07:00
|
|
|
typeOptions: {
|
|
|
|
password: true,
|
|
|
|
},
|
|
|
|
default: '',
|
|
|
|
},
|
2020-10-28 15:29:45 -07:00
|
|
|
{
|
|
|
|
displayName: 'Transport Type',
|
|
|
|
name: 'transportType',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'string',
|
2024-07-12 07:56:40 -07:00
|
|
|
placeholder: 'e.g. tcp',
|
2020-10-28 15:29:45 -07:00
|
|
|
default: '',
|
2024-07-12 07:56:40 -07:00
|
|
|
hint: 'Optional transport type to use, either tcp or tls',
|
2020-10-28 15:29:45 -07:00
|
|
|
},
|
2019-11-01 00:42:14 -07:00
|
|
|
];
|
|
|
|
}
|