Documentation ¶
Index ¶
- Variables
- func JsonDecode(v interface{}, b []byte) error
- type Client
- func (c *Client) Close() error
- func (c *Client) Create(path string, data []byte) error
- func (c *Client) Delete(path string) error
- func (c *Client) Details(path string) ([]string, error)
- func (c *Client) List(path string) ([]string, error)
- func (c *Client) Read(path string) ([]byte, error)
- func (c *Client) SubList(subPath string) (interface{}, error)
- func (c *Client) Update(path string, data []byte) error
- type Group
- type TblDashboard
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosedClient = errors.New("use of closed fs client")
Functions ¶
func JsonDecode ¶
Types ¶
type Group ¶
type Group struct { Id int `json:"id"` Servers []interface{} `json:"servers"` MasterAddr string `json:"master_addr,omitempty"` Promoting struct { Index int `json:"index,omitempty"` State string `json:"state,omitempty"` } `json:"promoting"` OutOfSync bool `json:"out_of_sync,omitempty"` IsExpanding bool `json:"is_expanding"` UpdateTime int64 `json:"update_time"` }
type TblDashboard ¶
type TblDashboard struct { ID uint `gorm:"column:id"` ClusterName string `gorm:"column:product_name"` SubPath string `gorm:"column:sub_path"` FullPath string `gorm:"column:full_path"` Value string `gorm:"column:value"` CreateTime int64 `gorm:"column:create_time"` UpdateTime int64 `gorm:"column:update_time"` }
func (TblDashboard) TableName ¶
func (TblDashboard) TableName() string
Click to show internal directories.
Click to hide internal directories.