// 大名科技(天津)有限公司版权所有 电话:18020030720 QQ:515096995
//
// 此源代码遵循位于源代码树根目录中的 LICENSE 文件的许可证
namespace Admin.NET.Core;
///
/// ES配置选项
///
public class ElasticSearchOptions
{
///
/// 是否启用
///
public bool Enabled { get; set; } = false;
///
/// ES认证类型,可选 Basic、ApiKey、Base64ApiKey
///
public ElasticSearchAuthTypeEnum AuthType { get; set; }
///
/// Basic认证的用户名
///
public string User { get; set; }
///
/// Basic认证的密码
///
public string Password { get; set; }
///
/// ApiKey认证的ApiId
///
public string ApiId { get; set; }
///
/// ApiKey认证的ApiKey
///
public string ApiKey { get; set; }
///
/// Base64ApiKey认证时加密的加密字符串
///
public string Base64ApiKey { get; set; }
///
/// ES使用Https时的证书指纹,使用证书请自行实现
/// https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/connecting.html
///
public string Fingerprint { get; set; }
///
/// 地址
///
public List ServerUris { get; set; } = new List();
///
/// 索引
///
public string DefaultIndex { get; set; }
}