apiserver

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 20 Imported by: 0

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

type SubStatus

type SubStatus struct {
	OK      bool   `json:"ok"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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