console/model/cluster.go

17 lines
979 B
Go

package model
//type ClusterConfig struct {
// //ID string `json:"id" elastic_meta:"_id"`
// Name string `json:"name" elastic_mapping:"name:{type:text}"`
// Endpoint string `json:"endpoint" elastic_mapping:"endpoint:{type:text}"`
// BasicAuth struct {
// UserName string `json:"username,omitempty" elastic_mapping:"username:{type:keyword}"`
// Password string `json:"password,omitempty" elastic_mapping:"password:{type:keyword}" `
// } `json:"basic_auth,omitempty" elastic_mapping:"basic_auth:{type:object}"`
// Order int `json:"order,omitempty" elastic_mapping:"order:{type:integer}"`
// Description string `json:"description,omitempty" elastic_mapping:"description:{type:text}"`
// Enabled bool `json:"enabled" elastic_mapping:"enabled:{type:boolean}"`
// Created time.Time `json:"created,omitempty" elastic_mapping:"created:{type:date}"`
// Updated time.Time `json:"updated,omitempty" elastic_mapping:"updated:{type:date}"`
//}