操控平台后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.6 KiB

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