Documentation ¶
Index ¶
- type AddDashboardParams
- type AddTeamMemberItem
- type AddTeamMemberParams
- type Alarm
- type Alert
- type AlertItemRawParams
- type BatchUpdateDashboardStatusParams
- type BatchUpdateUserStatusParams
- type CaptchaItem
- type ChartItem
- type CheckPermissionParams
- type CheckTokenParams
- type ConvertFileParams
- type CreateAlarmHookParams
- type CreateAlarmHookRawParams
- type CreateAlarmInfoParams
- type CreateAlarmItemParams
- type CreateAlarmNoticeGroupParams
- type CreateAlarmRawParams
- type CreateDatasourceParams
- type CreateDictParams
- type CreateMenuParams
- type CreateMetricParams
- type CreateNoticeMemberParams
- type CreateStrategyGroupParams
- type CreateStrategyLevel
- type CreateStrategyLevelTemplate
- type CreateStrategyParams
- type CreateTeamParams
- type CreateTeamRoleParams
- type CreateTemplateStrategyParams
- type CreateUserParams
- type Datasource
- type DatasourceMetricOptionBuild
- type DatasourceOptionBuild
- type DatasourceQueryParams
- type DatasourceQueryValue
- type DelStrategyGroupParams
- type DeleteDashboardParams
- type DownLoadFileParams
- type GenerateCaptchaParams
- type GetAlarmHistoryParams
- type GetMetricParams
- type GetRealTimeAlarmParams
- type GetRealTimeAlarmsParams
- type GetStrategyCountParams
- type GetTeamDatasourceParams
- type GetTeamStrategyLevelParams
- type GetTeamStrategyParams
- type InviteTeamInfoParams
- type InviteUserParams
- type LabelNotices
- type ListDashboardParams
- type ListTeamMemberParams
- type ListTeamRoleParams
- type LoginParams
- type LoginReply
- type LogoutParams
- type Message
- type MetricBo
- type MetricLabel
- type MetricQueryData
- type MyAlarmGroupListParams
- type NoticeUserMessage
- type QueryAlarmHistoryListParams
- type QueryAlarmHookListParams
- type QueryAlarmNoticeGroupListParams
- type QueryDatasourceListParams
- type QueryDictListParams
- type QueryInviteListParams
- type QueryMenuListParams
- type QueryMetricListParams
- type QueryResourceListParams
- type QueryStrategyGroupListParams
- type QueryStrategyListParams
- type QueryStrategySubscriberParams
- type QueryTeamListParams
- type QueryTeamMenuListParams
- type QueryTemplateStrategyListParams
- type QueryUserListParams
- type QueryUserMessageListParams
- type QueryUserSelectParams
- type QueryUserSubscriberParams
- type RefreshTokenParams
- type RefreshTokenReply
- type RemoveTeamMemberParams
- type ResetUserPasswordBySelfParams
- type ResourceSelectOptionBuild
- type SelectExtend
- type SelectOptionBo
- type SendMsg
- type SetMemberAdminParams
- type SetMemberRoleParams
- type SetTeamMailConfigParams
- type Strategy
- type StrategyCountMap
- type StrategyCountModel
- type StrategyDomain
- type StrategyEndpoint
- type StrategyLabelNotice
- type StrategyPing
- type SubscriberStrategyParams
- type TransferTeamLeaderParams
- type UnSubscriberStrategyParams
- type UpdateAlarmHookParams
- type UpdateAlarmHookStatusParams
- type UpdateAlarmNoticeGroupParams
- type UpdateAlarmNoticeGroupStatusParams
- type UpdateDashboardParams
- type UpdateDatasourceBaseInfoParams
- type UpdateDatasourceConfigParams
- type UpdateDictParams
- type UpdateDictStatusParams
- type UpdateInviteStatusParams
- type UpdateMenuParams
- type UpdateMenuStatusParams
- type UpdateMenuTypeParams
- type UpdateMetricParams
- type UpdateStrategyGroupParams
- type UpdateStrategyGroupStatusParams
- type UpdateStrategyParams
- type UpdateStrategyStatusParams
- type UpdateTeamParams
- type UpdateTeamRoleParams
- type UpdateTemplateStrategyParams
- type UpdateTemplateStrategyStatusParams
- type UpdateUserAvatarRequest
- type UpdateUserBaseParams
- type UpdateUserEmailRequest
- type UpdateUserParams
- type UpdateUserPhoneRequest
- type UploadFileParams
- type UploadResParams
- type UserSelectOptionBuild
- type ValidateCaptchaItem
- type ValidateCaptchaParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddDashboardParams ¶
type AddDashboardParams struct { Name string Remark string Color string Charts []*ChartItem StrategyGroups []uint32 }
AddDashboardParams 添加仪表盘请求参数
type AddTeamMemberItem ¶
type AddTeamMemberItem struct { // 用户ID UserID uint32 `json:"userID"` // 是否为管理员 Role vobj.Role `json:"role"` // 角色列表 RoleIDs []uint32 `json:"roleIds"` }
AddTeamMemberItem 添加团队成员请求参数
type AddTeamMemberParams ¶
type AddTeamMemberParams struct { // 成员列表 Members []*AddTeamMemberItem `json:"members"` }
AddTeamMemberParams 添加团队成员请求参数
type Alarm ¶
type Alarm struct { Receiver string `json:"receiver"` Status vobj.AlertStatus `json:"status"` Alerts []*Alert `json:"alerts"` GroupLabels *vobj.Labels `json:"groupLabels"` CommonLabels *vobj.Labels `json:"commonLabels"` CommonAnnotations vobj.Annotations `json:"commonAnnotations"` ExternalURL string `json:"externalURL"` Version string `json:"version"` GroupKey string `json:"groupKey"` TruncatedAlerts int32 `json:"truncatedAlerts"` }
Alarm alarm detail info
type Alert ¶
type Alert struct { Status vobj.AlertStatus `json:"status"` Labels *vobj.Labels `json:"labels"` Annotations vobj.Annotations `json:"annotations"` StartsAt *types.Time `json:"startsAt"` EndsAt *types.Time `json:"endsAt"` GeneratorURL string `json:"generatorURL"` Fingerprint string `json:"fingerprint"` Value float64 `json:"value"` }
Alert alert detail info
type AlertItemRawParams ¶ added in v1.1.0
type AlertItemRawParams struct { // 告警状态, firing, resolved Status string `json:"status"` // 标签 Labels map[string]string `json:"labels"` // 注解 Annotations vobj.Annotations `json:"annotations"` // 开始时间 StartsAt string `json:"startsAt"` // 结束时间, 空表示未结束 EndsAt string `json:"endsAt"` // 告警生成链接 GeneratorURL string `json:"generatorURL"` // 指纹 Fingerprint string `json:"fingerprint"` // Value Value float64 `json:"value"` }
AlertItemRawParams 告警原始数据
func (*AlertItemRawParams) GetAlertItemString ¶ added in v1.1.0
func (a *AlertItemRawParams) GetAlertItemString() string
GetAlertItemString 获取原始告警字符串
func (*AlertItemRawParams) NoticeKey ¶ added in v1.1.0
func (a *AlertItemRawParams) NoticeKey(route string) string
NoticeKey redis key
type BatchUpdateDashboardStatusParams ¶ added in v1.1.0
BatchUpdateDashboardStatusParams 批量更新仪表盘状态请求参数
type BatchUpdateUserStatusParams ¶
type BatchUpdateUserStatusParams struct { Status vobj.Status `json:"status"` IDs []uint32 `json:"ids"` }
BatchUpdateUserStatusParams 批量更新用户状态参数
type CaptchaItem ¶
type CaptchaItem struct { ValidateCaptchaItem Base64s string `json:"base64s"` }
CaptchaItem 验证码明细
type ChartItem ¶
type ChartItem struct { ID uint32 Name string Remark string URL string Status vobj.Status Height string Width string ChartType vobj.DashboardChartType DashboardID uint32 }
ChartItem 仪表盘图表明细
type CheckPermissionParams ¶
type CheckPermissionParams struct { JwtClaims *middleware.JwtClaims Operation string }
CheckPermissionParams 鉴权请求参数
type CheckTokenParams ¶
type CheckTokenParams struct {
JwtClaims *middleware.JwtClaims
}
CheckTokenParams token鉴权请求参数
type ConvertFileParams ¶ added in v1.1.0
type ConvertFileParams struct { UploadType string `json:"uploadType"` File multipart.File `json:"file"` Filename string `json:"filename"` }
ConvertFileParams 转换文件参数
type CreateAlarmHookParams ¶
type CreateAlarmHookParams struct { // Hook的名称 Name string `json:"name"` // hook说明信息 Remark string `json:"remark"` // url URL string `json:"url"` // secret Secret string `json:"secret"` // hook app HookApp vobj.HookAPP `json:"hookApp"` // status Status vobj.Status `json:"status"` }
CreateAlarmHookParams 创建hook参数
type CreateAlarmHookRawParams ¶ added in v1.1.0
type CreateAlarmHookRawParams struct { Receiver string `json:"receiver"` Status string `json:"status"` GroupLabels *vobj.Labels `json:"groupLabels"` CommonLabels *vobj.Labels `json:"commonLabels"` CommonAnnotations map[string]string `json:"commonAnnotations"` ExternalURL string `json:"externalURL"` Version string `json:"version"` GroupKey string `json:"groupKey"` TruncatedAlerts int32 `json:"truncatedAlerts"` Alerts []*AlertItemRawParams `json:"alerts"` TeamID uint32 `json:"teamId"` StrategyID uint32 `json:"strategyId"` LevelID uint32 `json:"levelId"` }
CreateAlarmHookRawParams 告警hook原始信息
func (*CreateAlarmHookRawParams) Index ¶ added in v1.1.0
func (a *CreateAlarmHookRawParams) Index() string
func (*CreateAlarmHookRawParams) Message ¶ added in v1.1.0
func (a *CreateAlarmHookRawParams) Message() *watch.Message
func (*CreateAlarmHookRawParams) String ¶ added in v1.1.0
func (a *CreateAlarmHookRawParams) String() string
type CreateAlarmInfoParams ¶ added in v1.1.0
type CreateAlarmInfoParams struct { ReceiverGroupIDs []uint32 `json:"receiver_group_ids"` TeamID uint32 `json:"teamId"` Alerts []*AlertItemRawParams `json:"alerts"` Strategy *bizmodel.Strategy `json:"strategy"` Level *bizmodel.StrategyLevel `json:"level"` DatasourceMap map[uint32]*bizmodel.Datasource `json:"datasourceMap"` RawInfoMap map[string]*alarmmodel.AlarmRaw `json:"rawIdMap"` }
CreateAlarmInfoParams 创建告警信息参数
func (*CreateAlarmInfoParams) GetDatasourceMap ¶ added in v1.1.0
func (a *CreateAlarmInfoParams) GetDatasourceMap(datasourceID uint32) string
GetDatasourceMap 获取数据源
func (*CreateAlarmInfoParams) GetRawInfoId ¶ added in v1.1.0
func (a *CreateAlarmInfoParams) GetRawInfoId(fingerprint string) uint32
GetRawInfoId 获取原始信息id
type CreateAlarmItemParams ¶ added in v1.1.0
type CreateAlarmItemParams AlertItemRawParams
CreateAlarmItemParams 创建告警项请求参数
type CreateAlarmNoticeGroupParams ¶
type CreateAlarmNoticeGroupParams struct { // 告警组名称 Name string `json:"name,omitempty"` // 告警组说明信息 Remark string `json:"remark,omitempty"` // 告警组状态 Status vobj.Status `json:"status,omitempty"` // 告警分组通知人 NoticeMembers []*CreateNoticeMemberParams `json:"noticeMembers,omitempty"` // hook ids HookIds []uint32 `json:"hookIds"` }
CreateAlarmNoticeGroupParams 创建告警组请求参数
type CreateAlarmRawParams ¶ added in v1.1.0
type CreateAlarmRawParams struct { Fingerprint string `json:"fingerprint"` RawInfo string `json:"rawInfo"` Receiver string `json:"receiver"` }
CreateAlarmRawParams 创建告警原始数据参数
type CreateDatasourceParams ¶
type CreateDatasourceParams struct { // 数据源名称 Name string `json:"name"` // 数据源类型 DatasourceType vobj.DatasourceType `json:"datasourceType"` // 数据源地址 Endpoint string `json:"endpoint"` // 状态 Status vobj.Status `json:"status"` // 描述 Remark string `json:"remark"` // 数据源配置(json 字符串) Config map[string]string `json:"config"` // 存储器类型 StorageType vobj.StorageType `json:"storageType"` }
CreateDatasourceParams 创建数据源请求参数
type CreateDictParams ¶
type CreateDictParams struct { // 字典名称 Name string `json:"name"` // 备注 Remark string `json:"remark"` // 字典值 Value string `json:"value"` // 字典类型 DictType vobj.DictType `json:"dict_type"` // 颜色样式 ColorType string `json:"color_type"` // css样式 CSSClass string `json:"css_class"` // icon Icon string `json:"icon"` // 图片 ImageURL string `json:"image_url"` // 状态 Status vobj.Status `json:"status"` LanguageCode vobj.Language `json:"language_code"` }
CreateDictParams 创建字典请求参数
type CreateMenuParams ¶
type CreateMenuParams struct { // 菜单名称 Name string `json:"name"` // 父id ParentID uint32 `json:"parent_id"` // 路径 Path string `json:"path"` // 图标 Icon string `json:"icon"` // 菜单类型 Type vobj.MenuType `json:"type"` // 状态 Status vobj.Status `json:"status"` // 排序 Sort int32 `json:"sort"` // 级别 Level int32 `json:"level"` // 权限标识 Permission string `json:"permission"` // 组件路径 Component string `json:"component"` // 英文名称 EnName string `json:"en_name"` }
CreateMenuParams 创建菜单请求参数
type CreateMetricParams ¶
type CreateMetricParams struct { Metric *MetricBo `json:"metric"` Done bool `json:"done"` DatasourceID uint32 `json:"datasourceID"` TeamID uint32 `json:"teamId"` }
CreateMetricParams 创建指标请求参数
func (*CreateMetricParams) ToModel ¶
func (c *CreateMetricParams) ToModel() *bizmodel.DatasourceMetric
ToModel 转换成数据库模型
type CreateNoticeMemberParams ¶
type CreateNoticeMemberParams struct { // 用户id MemberID uint32 // 通知方式 NotifyType vobj.NotifyType }
CreateNoticeMemberParams 创建通知人参数
type CreateStrategyGroupParams ¶
type CreateStrategyGroupParams struct { // 策略组名称 Name string `json:"name,omitempty"` // 策略组说明信息 Remark string `json:"remark,omitempty"` // 策略组状态 Status vobj.Status `json:"status,omitempty"` // 策略分组类型 CategoriesIds []uint32 `json:"categoriesIds,omitempty"` }
CreateStrategyGroupParams 创建策略组请求参数
type CreateStrategyLevel ¶
type CreateStrategyLevel struct { ID uint32 `json:"id"` // 所属策略模板id StrategyTemplateID uint32 `json:"strategyTemplateID"` // 持续时间 Duration int64 `json:"duration"` // 持续次数 Count uint32 `json:"count"` // 持续事件类型 SustainType vobj.Sustain `json:"sustainType"` // 执行频率 Interval int64 `json:"interval"` // 条件 Condition vobj.Condition `json:"condition"` // 阈值 Threshold float64 `json:"threshold"` // 告警等级 对应sys_dict字典id LevelID uint32 `json:"LevelID"` // 状态 Status vobj.Status `json:"status"` // 告警页面 AlarmPageIds []uint32 `json:"alarmPageIds"` // 告警组 AlarmGroupIds []uint32 `json:"alarmGroupIds"` // 策略ID StrategyID uint32 `json:"strategyID"` // 策略标签 LabelNotices []*StrategyLabelNotice `json:"labelNotices"` }
CreateStrategyLevel 策略模板策略等级
type CreateStrategyLevelTemplate ¶
type CreateStrategyLevelTemplate struct { // 所属策略模板id StrategyTemplateID uint32 `json:"strategyTemplateID"` // 持续时间 Duration *types.Duration `json:"duration"` // 持续次数 Count uint32 `json:"count"` // 持续事件类型 SustainType vobj.Sustain `json:"sustainType"` // 条件 Condition vobj.Condition `json:"condition"` // 阈值 Threshold float64 `json:"threshold"` // 告警等级 对应sys_dict字典id LevelID uint32 `json:"LevelID"` // 状态 Status vobj.Status `json:"status"` }
CreateStrategyLevelTemplate 创建策略模板等级参数
type CreateStrategyParams ¶
type CreateStrategyParams struct { // 策略组ID GroupID uint32 `json:"group_id"` // 策略模板id TemplateID uint32 `json:"template_id"` // 备注 Remark string `json:"remark"` // 状态 Status vobj.Status `json:"status"` // 采样率 Step uint32 `json:"step"` // 数据源id DatasourceIDs []uint32 `json:"datasource_ids"` // 模板来源 TemplateSource vobj.StrategyTemplateSource `json:"source_type"` // 策略名称 Name string `json:"name"` TeamID uint32 `json:"teamID"` // 策略等级 Levels []*CreateStrategyLevel `json:"strategyLevel"` // 标签 Labels *vobj.Labels `json:"labels"` // 注解 Annotations *vobj.Annotations `json:"annotations"` // 告警表达式 Expr string `json:"expr"` // 策略类型 CategoriesIds []uint32 `json:"categoriesIds"` // 告警组 AlarmGroupIds []uint32 `json:"alarmGroupIds"` }
CreateStrategyParams 创建策略请求参数
type CreateTeamParams ¶
type CreateTeamParams struct { // 团队名称 Name string `json:"name"` // 团队备注 Remark string `json:"remark"` // 团队logo Logo string `json:"logo"` // 状态 Status vobj.Status `json:"status"` // 团队负责人 LeaderID uint32 `json:"leaderID"` // 管理员列表 Admins []uint32 `json:"admins"` }
CreateTeamParams 创建团队请求参数
type CreateTeamRoleParams ¶
type CreateTeamRoleParams struct { // 角色名称 Name string `json:"name"` // 角色描述 Remark string `json:"remark"` // 角色状态 Status vobj.Status `json:"status"` // 角色权限 Permissions []uint32 `json:"permissions"` }
CreateTeamRoleParams 创建团队角色
type CreateTemplateStrategyParams ¶
type CreateTemplateStrategyParams struct { // 策略名称 Alert string `json:"alert"` // 告警表达式 Expr string `json:"expr"` // 备注 Remark string `json:"remark"` // 标签 Labels *vobj.Labels `json:"labels"` // 注解 Annotations *vobj.Annotations `json:"annotations"` // 告警等级数据 StrategyLevelTemplates []*CreateStrategyLevelTemplate `json:"strategyLevelTemplates"` //策略模板类型 CategoriesIDs []uint32 `json:"categoriesIds"` }
CreateTemplateStrategyParams 创建模板策略参数
type CreateUserParams ¶
type CreateUserParams struct { Name string `json:"name"` Password types.Password `json:"password"` Email string `json:"email"` Phone string `json:"phone"` Nickname string `json:"nickname"` Remark string `json:"remark"` Avatar string `json:"avatar"` // 创建人 CreatorID uint32 `json:"creatorID"` Status vobj.Status `json:"status"` Gender vobj.Gender `json:"gender"` Role vobj.Role `json:"role"` }
CreateUserParams 创建用户参数
type Datasource ¶
type Datasource struct { // 数据源类型 Category vobj.DatasourceType `json:"category,omitempty"` // 存储器类型 StorageType vobj.StorageType `json:"storage_type,omitempty"` // 数据源配置 json Config map[string]string `json:"config,omitempty"` // 数据源地址 Endpoint string `json:"endpoint,omitempty"` // 数据源ID ID uint32 `json:"id,omitempty"` }
Datasource 数据源明细
type DatasourceMetricOptionBuild ¶
type DatasourceMetricOptionBuild struct {
*bizmodel.DatasourceMetric
}
DatasourceMetricOptionBuild 数据源指标选项构建器
func NewDatasourceMetricOptionBuild ¶
func NewDatasourceMetricOptionBuild(metric *bizmodel.DatasourceMetric) *DatasourceMetricOptionBuild
NewDatasourceMetricOptionBuild 创建数据源指标选项构建器
func (*DatasourceMetricOptionBuild) ToSelectOption ¶
func (b *DatasourceMetricOptionBuild) ToSelectOption() *SelectOptionBo
ToSelectOption 转换为选择项
type DatasourceOptionBuild ¶
type DatasourceOptionBuild struct {
*bizmodel.Datasource
}
DatasourceOptionBuild 数据源选项构建器
func NewDatasourceOptionBuild ¶
func NewDatasourceOptionBuild(datasource *bizmodel.Datasource) *DatasourceOptionBuild
NewDatasourceOptionBuild 创建数据源选项构建器
func (*DatasourceOptionBuild) ToSelectOption ¶
func (b *DatasourceOptionBuild) ToSelectOption() *SelectOptionBo
ToSelectOption 转换为选择项
type DatasourceQueryParams ¶
type DatasourceQueryParams struct { DatasourceID uint32 `json:"datasourceID"` // 查询语句 Query string `json:"query"` // 步长 Step uint32 `json:"step"` // 时间范围 TimeRange []string `json:"timeRange"` // 数据源 *bizmodel.Datasource `json:"datasource"` }
DatasourceQueryParams 查询数据源请求参数
type DatasourceQueryValue ¶
type DatasourceQueryValue struct { Value float64 `json:"value"` Timestamp int64 `json:"timestamp"` }
DatasourceQueryValue 数据源查询结果值
type DelStrategyGroupParams ¶
type DelStrategyGroupParams struct {
ID uint32 `json:"id"`
}
DelStrategyGroupParams 删除策略组请求参数
type DeleteDashboardParams ¶
DeleteDashboardParams 删除仪表盘请求参数
type DownLoadFileParams ¶ added in v1.1.0
type DownLoadFileParams struct {
FilePath string `json:"filePath"`
}
DownLoadFileParams 下载文件参数
type GenerateCaptchaParams ¶
GenerateCaptchaParams 生成验证码参数
type GetAlarmHistoryParams ¶ added in v1.1.0
type GetAlarmHistoryParams struct { // 告警ID ID uint32 `json:"id"` }
GetAlarmHistoryParams 获取告警告警历史参数
type GetMetricParams ¶
GetMetricParams 获取指标请求参数
type GetRealTimeAlarmParams ¶
GetRealTimeAlarmParams 获取实时告警参数
type GetRealTimeAlarmsParams ¶
type GetRealTimeAlarmsParams struct { // 分页参数 Pagination types.Pagination // 告警时间范围 EventAtStart string EventAtEnd string // 告警恢复时间 ResolvedAtStart string ResolvedAtEnd string // 告警级别 AlarmLevels []uint32 // 告警状态 AlarmStatuses []vobj.AlertStatus // 关键字 Keyword string // 告警页面 AlarmPageID uint32 // 我的告警 MyAlarm bool }
GetRealTimeAlarmsParams 获取实时告警列表参数
type GetStrategyCountParams ¶
type GetStrategyCountParams struct { StrategyGroupIds []uint32 `json:"strategyGroupIds"` Status vobj.Status }
GetStrategyCountParams 查询策略总数参数
type GetTeamDatasourceParams ¶ added in v1.1.0
type GetTeamDatasourceParams struct { TeamID uint32 `json:"teamId"` DatasourceIds []uint32 `json:"datasourceIds"` }
GetTeamDatasourceParams 获取团队数据源信息参数
type GetTeamStrategyLevelParams ¶ added in v1.1.0
type GetTeamStrategyLevelParams struct { TeamID uint32 `json:"teamId"` LevelID uint32 `json:"level"` }
GetTeamStrategyLevelParams 获取团队策略等级参数
type GetTeamStrategyParams ¶ added in v1.1.0
type GetTeamStrategyParams struct { TeamID uint32 `json:"teamId"` StrategyID uint32 `json:"strategyId"` }
GetTeamStrategyParams 获取团队策略参数
type InviteTeamInfoParams ¶ added in v1.0.2
type InviteTeamInfoParams struct { TeamMap map[uint32]*model.SysTeam TeamRoles []*bizmodel.SysTeamRole }
type InviteUserParams ¶ added in v1.0.2
type LabelNotices ¶ added in v1.1.0
type ListDashboardParams ¶
type ListDashboardParams struct { Page types.Pagination Keyword string Status vobj.Status }
ListDashboardParams 仪表盘列表请求参数
type ListTeamMemberParams ¶
type ListTeamMemberParams struct { Page types.Pagination // 模糊查询 Keyword string `json:"keyword"` // 是否为管理员 Role vobj.Role `json:"role"` // 性别 Gender vobj.Gender `json:"gender"` // 状态 Status vobj.Status `json:"status"` // 成员ID列表 MemberIDs []uint32 `json:"memberIDs"` }
ListTeamMemberParams 查询团队
type ListTeamRoleParams ¶
type ListTeamRoleParams struct { TeamID uint32 `json:"teamID"` Keyword string `json:"keyword"` Page types.Pagination `json:"page"` }
ListTeamRoleParams 获取团队角色列表
type LoginParams ¶
LoginParams 登录请求参数
type LoginReply ¶
type LoginReply struct { JwtClaims *middleware.JwtClaims User *model.SysUser }
LoginReply 登录响应
type LogoutParams ¶
type LogoutParams struct {
JwtClaims *middleware.JwtClaims
}
LogoutParams 登出请求参数
type MetricBo ¶
type MetricBo struct { Name string `json:"name"` Help string `json:"help"` Type vobj.MetricType `json:"type"` Unit string `json:"unit"` Labels []*MetricLabel `json:"labels"` }
MetricBo 指标明细
type MetricLabel ¶
MetricLabel 指标标签
type MetricQueryData ¶
type MetricQueryData struct { Labels map[string]string `json:"labels"` ResultType string `json:"resultType"` Values []*DatasourceQueryValue `json:"values"` Value *DatasourceQueryValue `json:"value"` }
MetricQueryData 数据源查询结果
type MyAlarmGroupListParams ¶
type MyAlarmGroupListParams struct { Keyword string `json:"keyword"` Page types.Pagination Name string Status vobj.Status }
MyAlarmGroupListParams 我的告警组列表请求参数
type NoticeUserMessage ¶ added in v1.0.2
type QueryAlarmHistoryListParams ¶ added in v1.1.0
type QueryAlarmHistoryListParams struct { Keyword string `json:"keyword"` Page types.Pagination `json:"page"` AlertStatus []vobj.AlertStatus `json:"alertStatus"` // 告警时间范围 EventAtStart string EventAtEnd string // 告警恢复时间 ResolvedAtStart string ResolvedAtEnd string AlarmPage uint32 }
QueryAlarmHistoryListParams 查询告警历史列表请求参数
type QueryAlarmHookListParams ¶
type QueryAlarmHookListParams struct { Keyword string `json:"keyword"` Page types.Pagination Name string Status vobj.Status Apps []vobj.HookAPP }
QueryAlarmHookListParams 查询hook列表
type QueryAlarmNoticeGroupListParams ¶
type QueryAlarmNoticeGroupListParams struct { Keyword string `json:"keyword"` Page types.Pagination Name string Status vobj.Status }
QueryAlarmNoticeGroupListParams 查询告警组列表请求参数
type QueryDatasourceListParams ¶
type QueryDatasourceListParams struct { // 分页, 不传不分页 Page types.Pagination `json:"page"` // 关键字 Keyword string `json:"keyword"` // 数据源类型 DatasourceType vobj.DatasourceType `json:"datasourceType"` // 状态 Status vobj.Status `json:"status"` // 存储器类型 StorageType vobj.StorageType `json:"storageType"` }
QueryDatasourceListParams 查询数据源列表请求参数
type QueryDictListParams ¶
type QueryDictListParams struct { Keyword string `json:"keyword"` Page types.Pagination `json:"page"` Status vobj.Status `json:"status"` DictType vobj.DictType `json:"dict_type"` }
QueryDictListParams 查询字典列表请求参数
type QueryInviteListParams ¶ added in v1.0.2
type QueryInviteListParams struct { Page types.Pagination Keyword string `json:"keyword"` InviteType vobj.InviteType `json:"inviteType"` }
type QueryMenuListParams ¶
type QueryMenuListParams struct { Keyword string `json:"keyword"` Page types.Pagination `json:"page"` Status vobj.Status `json:"status"` MenuType vobj.MenuType `json:"menu_type"` }
QueryMenuListParams 查询菜单列表请求参数
type QueryMetricListParams ¶
type QueryMetricListParams struct { Page types.Pagination `json:"page"` Keyword string `json:"keyword"` DatasourceID uint32 `json:"datasourceID"` MetricType vobj.MetricType `json:"metricType"` }
QueryMetricListParams 查询指标列表请求参数
type QueryResourceListParams ¶
type QueryResourceListParams struct { Keyword string `json:"keyword"` Page types.Pagination `json:"page"` IsAll bool `json:"isAll"` Status vobj.Status `json:"status"` }
QueryResourceListParams 查询资源列表请求参数
type QueryStrategyGroupListParams ¶
type QueryStrategyGroupListParams struct { Keyword string `json:"keyword"` Page types.Pagination Name string Status vobj.Status CategoriesIds []uint32 `json:"categoriesIds"` }
QueryStrategyGroupListParams 查询策略组列表请求参数
type QueryStrategyListParams ¶
type QueryStrategyListParams struct { Keyword string `json:"keyword"` Page types.Pagination Alert string Status vobj.Status SourceType vobj.StrategyTemplateSource }
QueryStrategyListParams 查询策略列表请求参数
type QueryStrategySubscriberParams ¶
type QueryStrategySubscriberParams struct { Page types.Pagination StrategyID uint32 `json:"strategy_id"` NotifyType vobj.NotifyType `json:"notify_type"` }
QueryStrategySubscriberParams 策略订阅者参数
type QueryTeamListParams ¶
type QueryTeamListParams struct { Page types.Pagination Keyword string `json:"keyword"` Status vobj.Status `json:"status"` // 创建人 CreatorID uint32 `json:"creatorID"` // 负责人 LeaderID uint32 `json:"leaderID"` // 指定人员的团队列表 UserID uint32 `json:"userID"` // 团队ID列表 IDs []uint32 `json:"ids"` }
QueryTeamListParams 查询团队列表请求参数
type QueryTeamMenuListParams ¶
type QueryTeamMenuListParams struct {
TeamID uint32 `json:"teamID"`
}
QueryTeamMenuListParams 查询团队菜单列表请求参数
type QueryTemplateStrategyListParams ¶
type QueryTemplateStrategyListParams struct { Keyword string `json:"keyword"` Page types.Pagination Alert string Status vobj.Status }
QueryTemplateStrategyListParams 查询模板策略列表参数
type QueryUserListParams ¶
type QueryUserListParams struct { Keyword string `json:"keyword"` Page types.Pagination `json:"page"` Status vobj.Status `json:"status"` Gender vobj.Gender `json:"gender"` Role vobj.Role `json:"role"` IDs []uint32 `json:"ids"` }
QueryUserListParams 查询用户列表参数
type QueryUserMessageListParams ¶ added in v1.0.2
type QueryUserMessageListParams struct { Keyword string Page types.Pagination }
type QueryUserSelectParams ¶
type QueryUserSelectParams struct { Keyword string `json:"keyword"` Page types.Pagination `json:"page"` Status vobj.Status `json:"status"` Gender vobj.Gender `json:"gender"` Role vobj.Role `json:"role"` IDs []uint32 `json:"ids"` }
QueryUserSelectParams 查询用户选择参数
type QueryUserSubscriberParams ¶
type QueryUserSubscriberParams struct { UserID uint32 `json:"user_id"` NotifyType vobj.NotifyType `json:"notify_type"` Page types.Pagination }
QueryUserSubscriberParams 用户订阅策略列表查询参数
type RefreshTokenParams ¶
type RefreshTokenParams struct { JwtClaims *middleware.JwtClaims Team uint32 // 对应团队ID }
RefreshTokenParams 刷新token请求参数
type RefreshTokenReply ¶
type RefreshTokenReply struct { JwtClaims *middleware.JwtClaims User *model.SysUser TeamID uint32 `json:"teamID"` }
RefreshTokenReply 刷新token响应
type RemoveTeamMemberParams ¶
type RemoveTeamMemberParams struct { // 成员列表 MemberIds []uint32 `json:"memberIds"` }
RemoveTeamMemberParams 移除团队成员请求参数
type ResetUserPasswordBySelfParams ¶
type ResetUserPasswordBySelfParams struct { UserID uint32 `json:"userId"` Password types.Password `json:"password"` }
ResetUserPasswordBySelfParams 重置用户密码参数
type ResourceSelectOptionBuild ¶
ResourceSelectOptionBuild 资源选项构建器
func NewResourceSelectOptionBuild ¶
func NewResourceSelectOptionBuild(resource imodel.IResource) *ResourceSelectOptionBuild
NewResourceSelectOptionBuild 构建资源选项构建器
func (*ResourceSelectOptionBuild) ToSelectOption ¶
func (b *ResourceSelectOptionBuild) ToSelectOption() *SelectOptionBo
ToSelectOption 转换为选项
type SelectExtend ¶
type SelectExtend struct {
Icon, Color, Remark, Image string
}
SelectExtend 选择项扩展
type SelectOptionBo ¶
type SelectOptionBo struct { Value uint32 `json:"value"` Label string `json:"label"` Disabled bool `json:"disabled"` Children []*SelectOptionBo `json:"children"` Extend *SelectExtend `json:"extend"` }
SelectOptionBo 选择项明细
type SendMsg ¶ added in v1.1.0
type SendMsg struct {
*hookapi.SendMsgRequest
}
type SetMemberAdminParams ¶
type SetMemberAdminParams struct { // 成员列表 MemberIDs []uint32 `json:"memberIds"` // 是否为管理员 Role vobj.Role `json:"role"` }
SetMemberAdminParams 设置团队成员角色请求参数
type SetMemberRoleParams ¶
type SetMemberRoleParams struct { // 成员列表 MemberID uint32 `json:"memberID"` RoleIDs []uint32 `json:"roleIds"` }
SetMemberRoleParams 设置团队成员角色请求参数
type SetTeamMailConfigParams ¶
type SetTeamMailConfigParams struct { User string `json:"user"` Password string `json:"password"` Host string `json:"host"` Port uint32 `json:"port"` Remark string `json:"remark"` }
SetTeamMailConfigParams 设置团队邮件配置请求参数
func (*SetTeamMailConfigParams) ToModel ¶
func (t *SetTeamMailConfigParams) ToModel(ctx context.Context) *model.SysTeamEmail
ToModel 转换为model
type Strategy ¶
type Strategy struct { // 接收者 (告警组ID列表) ReceiverGroupIDs []uint32 `json:"receiverGroupIDs,omitempty"` // 自定义接收者匹配对象 LabelNotices []*LabelNotices `json:"labelNotices,omitempty"` // 策略ID ID uint32 `json:"id,omitempty"` // 等级ID LevelID uint32 `json:"levelID,omitempty"` // 策略名称 Alert string `json:"alert,omitempty"` // 策略语句 Expr string `json:"expr,omitempty"` // 策略持续时间 For int64 `json:"for,omitempty"` // 持续次数 Count uint32 `json:"count,omitempty"` // 持续的类型 SustainType vobj.Sustain `json:"sustainType,omitempty"` // 多数据源持续类型 MultiDatasourceSustainType vobj.MultiDatasourceSustain `json:"multiDatasourceSustainType,omitempty"` // 策略标签 Labels *vobj.Labels `json:"labels"` // 策略注解 Annotations *vobj.Annotations `json:"annotations"` // 执行频率 Interval int64 `json:"interval,omitempty"` // 数据源 Datasource []*Datasource `json:"datasource,omitempty"` // 策略状态 Status vobj.Status `json:"status,omitempty"` // 策略采样率 Step uint32 `json:"step,omitempty"` // 判断条件 Condition vobj.Condition `json:"condition,omitempty"` // 阈值 Threshold float64 `json:"threshold,omitempty"` // 团队ID TeamID uint32 `json:"teamID,omitempty"` }
Strategy 策略明细
type StrategyCountMap ¶
type StrategyCountMap struct { // 策略开启总数 StrategyCountMap map[uint32]*StrategyCountModel `json:"strategyCountMap"` // 策略总数 StrategyEnableMap map[uint32]*StrategyCountModel `json:"strategyEnableMap"` }
StrategyCountMap 策略总数map
func (*StrategyCountMap) GetStrategyCountMap ¶
func (s *StrategyCountMap) GetStrategyCountMap(strategyGroupIds uint32) uint64
GetStrategyCountMap 获取策略总数
func (*StrategyCountMap) GetStrategyEnableMap ¶
func (s *StrategyCountMap) GetStrategyEnableMap(strategyGroupIds uint32) uint64
GetStrategyEnableMap 获取策略开启总数
type StrategyCountModel ¶
type StrategyCountModel struct { GroupID uint32 `gorm:"column:group_id"` // 总数 Total uint64 `gorm:"column:total"` }
StrategyCountModel 策略数量统计 策略总数,策略开启总数接收model
type StrategyDomain ¶ added in v1.1.0
type StrategyDomain struct { // 接收者 (告警组ID列表) ReceiverGroupIDs []uint32 `json:"receiverGroupIDs,omitempty"` // 自定义接收者匹配对象 LabelNotices []*LabelNotices `json:"labelNotices,omitempty"` // 策略ID ID uint32 `json:"id,omitempty"` // 策略等级ID LevelID uint32 `json:"levelId,omitempty"` // 团队ID TeamID uint32 `json:"teamId,omitempty"` // 状态 Status vobj.Status `json:"status,omitempty"` // 策略名称 Alert string `json:"alert,omitempty"` // 阈值 Threshold int64 `json:"threshold,omitempty"` // 策略标签 Labels *vobj.Labels `json:"labels,omitempty"` // 策略注解 Annotations vobj.Annotations `json:"annotations,omitempty"` // 域名 Domain string `json:"domain,omitempty"` // 超时时间 Timeout uint32 `json:"timeout,omitempty"` // 执行频率 Interval int64 `json:"interval,omitempty"` // 端口 Port uint32 `json:"port,omitempty"` // 类型 Type vobj.StrategyType `json:"type,omitempty"` }
StrategyDomain 证书策略
func (*StrategyDomain) Message ¶ added in v1.1.0
func (s *StrategyDomain) Message() *watch.Message
Message 策略转消息
func (*StrategyDomain) String ¶ added in v1.1.0
func (s *StrategyDomain) String() string
String 策略转字符串
type StrategyEndpoint ¶ added in v1.1.0
type StrategyEndpoint struct { // 类型 Type vobj.StrategyType `json:"type,omitempty"` // url 地址 Url string `json:"url,omitempty"` // 超时时间 Timeout uint32 `json:"timeout,omitempty"` // 状态码 200 404 500 StatusCode uint32 `json:"statusCode,omitempty"` // 请求头 Headers map[string]string `json:"headers,omitempty"` // 请求体 Body string `json:"body,omitempty"` // 请求方式 Method vobj.HttpMethod `json:"method,omitempty"` // 相应时间阈值 Threshold int64 `json:"threshold,omitempty"` // 策略标签 Labels *vobj.Labels `json:"labels,omitempty"` // 策略注解 Annotations vobj.Annotations `json:"annotations,omitempty"` // 接收者 (告警组ID列表) ReceiverGroupIDs []uint32 `json:"receiverGroupIDs,omitempty"` // 自定义接收者匹配对象 LabelNotices []*LabelNotices `json:"labelNotices,omitempty"` // 团队ID TeamID uint32 `json:"teamId,omitempty"` // 状态 Status vobj.Status `json:"status,omitempty"` // 策略名称 Alert string `json:"alert,omitempty"` // 执行频率 Interval int64 `json:"interval,omitempty"` // 策略级别ID LevelID uint32 `json:"levelId,omitempty"` // 策略ID ID uint32 `json:"id,omitempty"` }
StrategyEndpoint 端点响应时间、状态码策略
func (*StrategyEndpoint) Index ¶ added in v1.1.0
func (e *StrategyEndpoint) Index() string
func (*StrategyEndpoint) Message ¶ added in v1.1.0
func (e *StrategyEndpoint) Message() *watch.Message
func (*StrategyEndpoint) String ¶ added in v1.1.0
func (e *StrategyEndpoint) String() string
type StrategyLabelNotice ¶
type StrategyLabelNotice struct { // 标签名称 Name string `json:"name"` // 标签值 Value string `json:"value"` // 告警组 AlarmGroupIds []uint32 `json:"alarmGroupIds"` }
StrategyLabelNotice 策略标签
type StrategyPing ¶ added in v1.1.0
type StrategyPing struct { // 类型 Type vobj.StrategyType `json:"type,omitempty"` // 策略ID ID uint32 `json:"strategy_id,omitempty"` // 团队ID TeamID uint32 `json:"teamId,omitempty"` // 状态 Status vobj.Status `json:"status,omitempty"` // 策略名称 Alert string `json:"alert,omitempty"` // 执行频率 Interval int64 `json:"interval,omitempty"` // 策略级别ID LevelID uint32 `json:"levelId,omitempty"` // 超时时间 Timeout uint32 `json:"timeout,omitempty"` // 策略标签 Labels *vobj.Labels `json:"labels,omitempty"` // 策略注解 Annotations vobj.Annotations `json:"annotations,omitempty"` // 接收者 (告警组ID列表) ReceiverGroupIDs []uint32 `json:"receiverGroupIDs,omitempty"` // 域名或IP Address string `json:"address,omitempty"` // 总包数 TotalPackets int64 `json:"totalPackets,omitempty"` // 成功包数 SuccessPackets int64 `json:"successPackets,omitempty"` // 丢包率 LossRate float64 `json:"lossRate,omitempty"` // 最小延迟 MinDelay int64 `json:"minDelay,omitempty"` // 最大延迟 MaxDelay int64 `json:"maxDelay,omitempty"` // 平均延迟 AvgDelay int64 `json:"avgDelay,omitempty"` // 标准差 StdDevDelay int64 `json:"stdDevDelay,omitempty"` }
StrategyPing ping 策略
func (*StrategyPing) Index ¶ added in v1.1.0
func (s *StrategyPing) Index() string
func (*StrategyPing) Message ¶ added in v1.1.0
func (s *StrategyPing) Message() *watch.Message
func (*StrategyPing) String ¶ added in v1.1.0
func (s *StrategyPing) String() string
type SubscriberStrategyParams ¶
type SubscriberStrategyParams struct { StrategyID uint32 `json:"strategy_id"` NotifyType vobj.NotifyType `json:"notify_type"` UserID uint32 `json:"user_id"` }
SubscriberStrategyParams 用户订阅策略参数
type TransferTeamLeaderParams ¶
type TransferTeamLeaderParams struct { // 新负责人ID LeaderID uint32 `json:"leaderID"` // 旧负责人ID OldLeaderID uint32 `json:"oldLeaderID"` }
TransferTeamLeaderParams 转移团队负责人请求参数
type UnSubscriberStrategyParams ¶
type UnSubscriberStrategyParams struct { StrategyID uint32 `json:"strategy_id"` UserID uint32 `json:"user_id"` }
UnSubscriberStrategyParams 用户取消订阅
type UpdateAlarmHookParams ¶
type UpdateAlarmHookParams struct { ID uint32 `json:"id"` UpdateParam *CreateAlarmHookParams `json:"updateParam"` }
UpdateAlarmHookParams 更新hook参数
type UpdateAlarmHookStatusParams ¶
UpdateAlarmHookStatusParams 更新hook状态
type UpdateAlarmNoticeGroupParams ¶
type UpdateAlarmNoticeGroupParams struct { ID uint32 `json:"id"` UpdateParam *CreateAlarmNoticeGroupParams }
UpdateAlarmNoticeGroupParams 更新告警组请求参数
type UpdateAlarmNoticeGroupStatusParams ¶
UpdateAlarmNoticeGroupStatusParams 更新告警组状态请求参数
type UpdateDashboardParams ¶
type UpdateDashboardParams struct { ID uint32 Name string Remark string Color string Charts []*ChartItem StrategyGroups []uint32 }
UpdateDashboardParams 更新仪表盘请求参数
type UpdateDatasourceBaseInfoParams ¶
type UpdateDatasourceBaseInfoParams struct { ID uint32 `json:"id"` // 数据源名称 Name string `json:"name"` // 状态 Status vobj.Status `json:"status"` // 数据源配置(json 字符串) ConfigValue string `json:"configValue"` // 描述 Remark string `json:"remark"` StorageType vobj.StorageType `json:"storageType"` DatasourceType vobj.DatasourceType `json:"datasourceType"` }
UpdateDatasourceBaseInfoParams 更新数据源基础信息请求参数
type UpdateDatasourceConfigParams ¶
type UpdateDatasourceConfigParams struct { ID uint32 `json:"id"` // 数据源配置(json 字符串) ConfigValue string `json:"configValue"` // 数据源类型 Type vobj.DatasourceType `json:"type"` // 存储器类型 StorageType vobj.StorageType `json:"storageType"` }
UpdateDatasourceConfigParams 更新数据源配置请求参数
type UpdateDictParams ¶
type UpdateDictParams struct { ID uint32 `json:"id"` UpdateParam *CreateDictParams }
UpdateDictParams 更新字典请求参数
type UpdateDictStatusParams ¶
UpdateDictStatusParams 更新字典状态请求参数
type UpdateInviteStatusParams ¶ added in v1.0.2
type UpdateInviteStatusParams struct { // 邀请ID InviteID uint32 `json:"inviteID"` // 状态 InviteType vobj.InviteType `json:"inviteType"` }
type UpdateMenuParams ¶
type UpdateMenuParams struct { ID uint32 `json:"id"` UpdateParam *CreateMenuParams }
UpdateMenuParams 更新菜单请求参数
type UpdateMenuStatusParams ¶
UpdateMenuStatusParams 更新菜单状态请求参数
type UpdateMenuTypeParams ¶
UpdateMenuTypeParams 更新菜单类型请求参数
type UpdateMetricParams ¶
type UpdateMetricParams struct { ID uint32 `json:"id"` // 单位 Unit string `json:"unit"` // 描述 Remark string `json:"remark"` }
UpdateMetricParams 更新指标请求参数
type UpdateStrategyGroupParams ¶
type UpdateStrategyGroupParams struct { ID uint32 `json:"id"` UpdateParam *CreateStrategyGroupParams }
UpdateStrategyGroupParams 更新策略组请求参数
type UpdateStrategyGroupStatusParams ¶
UpdateStrategyGroupStatusParams 更新策略组状态请求参数
type UpdateStrategyParams ¶
type UpdateStrategyParams struct { ID uint32 `json:"id"` UpdateParam *CreateStrategyParams }
UpdateStrategyParams 更新策略请求参数
type UpdateStrategyStatusParams ¶
UpdateStrategyStatusParams 更新策略状态请求参数
type UpdateTeamParams ¶
type UpdateTeamParams struct { // 团队ID ID uint32 `json:"id"` // 团队名称 Name string `json:"name"` // 团队备注 Remark string `json:"remark"` // 团队logo Logo string `json:"logo"` // 状态 Status vobj.Status `json:"status"` }
UpdateTeamParams 更新团队请求参数
type UpdateTeamRoleParams ¶
type UpdateTeamRoleParams struct { ID uint32 `json:"id"` // 角色名称 Name string `json:"name"` // 角色描述 Remark string `json:"remark"` // 角色权限 Permissions []uint32 `json:"permissions"` }
UpdateTeamRoleParams 更新团队角色
type UpdateTemplateStrategyParams ¶
type UpdateTemplateStrategyParams struct { ID uint32 `json:"id"` Data *CreateTemplateStrategyParams `json:"data"` }
UpdateTemplateStrategyParams 更新模板策略参数
type UpdateTemplateStrategyStatusParams ¶
type UpdateTemplateStrategyStatusParams struct { IDs []uint32 `json:"ids"` Status vobj.Status `json:"status"` }
UpdateTemplateStrategyStatusParams 更新模板策略状态参数
type UpdateUserAvatarRequest ¶
UpdateUserAvatarRequest 更新用户头像参数
type UpdateUserBaseParams ¶
type UpdateUserBaseParams struct { ID uint32 `json:"id"` Nickname string `json:"nickname"` Remark string `json:"remark"` Gender vobj.Gender `json:"gender"` }
UpdateUserBaseParams 更新用户基础信息参数
type UpdateUserEmailRequest ¶
UpdateUserEmailRequest 更新用户邮箱参数
type UpdateUserParams ¶
type UpdateUserParams struct { ID uint32 `json:"id"` *CreateUserParams }
UpdateUserParams 更新用户参数
type UpdateUserPhoneRequest ¶
UpdateUserPhoneRequest 更新用户手机号参数
type UploadFileParams ¶ added in v1.1.0
type UploadFileParams struct { FileName string `json:"fileName"` BytesBuff *bytes.Buffer `json:"bytesBuff"` // 文件后最 Extension string `json:"extension"` }
UploadFileParams 上传文件参数
type UploadResParams ¶ added in v1.1.0
type UploadResParams struct {
Url string `json:"url"`
}
UploadResParams 上传文件返回参数
type UserSelectOptionBuild ¶
UserSelectOptionBuild 用户选择项构建器
func NewUserSelectOptionBuild ¶
func NewUserSelectOptionBuild(user *model.SysUser) *UserSelectOptionBuild
NewUserSelectOptionBuild 创建选择项构建器
func (*UserSelectOptionBuild) ToSelectOption ¶
func (u *UserSelectOptionBuild) ToSelectOption() *SelectOptionBo
ToSelectOption 转换为选择项
type ValidateCaptchaItem ¶
type ValidateCaptchaItem struct { ValidateCaptchaParams ExpireAt int64 `json:"expireAt"` }
ValidateCaptchaItem 验证码缓存明细
func (*ValidateCaptchaItem) MarshalBinary ¶
func (l *ValidateCaptchaItem) MarshalBinary() (data []byte, err error)
MarshalBinary 实现encoding.MarshalBinary
func (*ValidateCaptchaItem) UnmarshalBinary ¶
func (l *ValidateCaptchaItem) UnmarshalBinary(data []byte) error
UnmarshalBinary 实现encoding.UnmarshalBinary
type ValidateCaptchaParams ¶
ValidateCaptchaParams 验证码参数
Source Files ¶
- alarm.go
- alarm_raw.go
- alert.go
- authorization.go
- captcha.go
- dashboard.go
- datasource.go
- dict.go
- file.go
- history.go
- hook.go
- menu.go
- metric.go
- msg.go
- resource.go
- select.go
- strategy_domain.go
- strategy_http.go
- strategy_metric.go
- strategy_ping.go
- subscriber.go
- team.go
- team_invite.go
- team_role.go
- template.go
- user.go