dto

package
v1.0.1-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentSearchTargetInfo

type AgentSearchTargetInfo struct {
	K8sInfo  *manager.ContainerInfo
	FilePath string
}

type ClusterInfo

type ClusterInfo struct {
	Name          string            `json:"name"`
	MaxShardNum   int               `json:"hasShard"`   // 是否有分片
	MaxReplicaNum int               `json:"hasReplica"` // 是否有副本
	Hosts         []ClusterInfoHost `json:"hosts"`
}

func (*ClusterInfo) Info

func (c *ClusterInfo) Info() string

type ClusterInfoHost

type ClusterInfoHost struct {
	Host    string `json:"host"`
	Address string `json:"address"`
	Port    int    `json:"port"`
}

type SearchRequest

type SearchRequest struct {
	StartTime int64    `json:"startTime,string" form:"startTime"`
	EndTime   int64    `json:"endTime,string" form:"endTime"`
	Namespace string   `json:"namespace" form:"namespace"` // k8s namespace
	Date      string   `json:"date" form:"date"`           // last 30min,6h,1d,7d
	KeyWord   string   `json:"keyWord" form:"keyWord"`     // 搜索的关键词
	Limit     int64    `json:"limit,string" form:"limit"`  // 最少多少条数据
	Container []string `json:"container" form:"container"` // container信息
	IsK8s     int      `json:"isK8s,string" form:"isK8s"`  // 是否为k8s
	Dir       string   `json:"dir" form:"dir"`             // 文件夹路径
}

type WebhookReq

type WebhookReq struct {
	CalledNumberList []string `json:"called_number_list"`
	CallContent      string   `json:"call_content"`
}

type WebhookResp

type WebhookResp struct {
	State string            `json:"state"`
	Data  []WebhookRespItem `json:"data"`
}

type WebhookRespItem

type WebhookRespItem struct {
	CalledNumber string `json:"called_number"`
	Message      string `json:"message"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL