Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHealth ¶
func GetHealth() metric.HealthMeta
func SetUnhealthy ¶
func SetUnhealthy(key string, message interface{})
Types ¶
type APIResource ¶
type APIResource struct { Conf *options.StorageOptions ActionsV1 []*httpserver.Action // contains filtered or unexported fields }
func GetAPIResource ¶
func GetAPIResource() *APIResource
Get *APIResource that loads config from config-file and handlers from api-actions
func (*APIResource) GetMongodbTankName ¶
func (a *APIResource) GetMongodbTankName(name string) string
func (*APIResource) GetZkTankName ¶
func (a *APIResource) GetZkTankName(name string) string
func (*APIResource) InitActions ¶
func (a *APIResource) InitActions()
func (*APIResource) ParseDBConfig ¶
func (a *APIResource) ParseDBConfig() (dbConf *conf.Config)
func (*APIResource) SetConfig ¶
func (a *APIResource) SetConfig(op *options.StorageOptions)
Set storageConfig to APIResource
type BcsHealthIf ¶
type BcsHealthIf struct { Code int `json:"code"` OK bool `json:"ok"` Data healthStatus `json:"data"` Message string `json:"message"` }
healthZ interface
Click to show internal directories.
Click to hide internal directories.