Documentation
¶
Index ¶
- Constants
- func CreateLog(data *CreateLogData) (err error)
- func CreateProject(data *CreateProjectData) (err error)
- func DeleteLog(data *LogDataInfo) (err error)
- func GetEtcdKeyData(key string, defVal interface{}) (data []byte, err error)
- func InitEtcd(etcdAddr []string) (err error)
- func InitMySql(dbInfo MysqlInfo) (err error)
- func NowTime() (now_time string)
- func SetEtcdKeyData(key, data string) (err error)
- type CreateLogData
- type CreateProjectData
- type LogCollect
- type LogDataInfo
- type MysqlInfo
- type ProjectDataInfo
Constants ¶
View Source
const (
TopicsName = "topics"
)
Variables ¶
This section is empty.
Functions ¶
func GetEtcdKeyData ¶
获取etcd中指定key的值
Types ¶
type CreateLogData ¶
type CreateLogData struct {
Hosts string `form:"hosts"`
Topic string `form:"topic"`
Pname string `form:"pname"`
LogPath string `form:"logPath"`
ApplyPath string `form: "applyPath"`
}
创建日志任务form数据
type CreateProjectData ¶
type CreateProjectData struct {
Name string `form:"pname"`
Type string `form:"type"`
ApplyPath string `form:"applyPath"`
}
创建project form
type LogCollect ¶
日志收集任务结构体
type LogDataInfo ¶
type LogDataInfo struct {
Id int `json:"id" db:"id" form:"id"`
Host string `json:"host" db:"host"`
Topic string `json:"topic" db:"topic" form:"topic"`
Pname string `json:"pname" db:"pname"`
LogPath string `json:"logPath" db:"logPath" form:"logPath"`
ApplyPath string `json:"applyPath" db:"applyPath" form:"applyPath"`
CreateTime string `json:"createTime" db:"createTime"`
}
日志收集数据结构
Click to show internal directories.
Click to hide internal directories.