mysqlapi

package
v3.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: Apache-2.0, Apache-2.0 Imports: 0 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllRdbHealth

type AllRdbHealth struct {
	// Deprecated; old information on portal database
	Dsn string `json:"dsn"`
	// Deprecated; old information on portal database
	OpenConnections int `json:"open_connections"`
	// Deprecated; old information on portal database
	PingResult int `json:"ping_result"`
	// Deprecated; old information on portal database
	PingMessage string `json:"ping_message"`

	Portal *Rdb `json:"portal"`
	Graph  *Rdb `json:"graph"`
	Boss   *Rdb `json:"boss"`
}

type HealthView

type HealthView struct {
	Rdb  *AllRdbHealth `json:"rdb"`
	Http *Http         `json:"http"`
	Nqm  *Nqm          `json:"nqm"`
}

HealthView is the model for responsed JSON data in “/health` example:

{
   "rdb":{
      "dsn":"DSN....",
      "open_connections":10,
      "ping_result":0,
      "ping_message":"",
      "<db1_name>": {
      	"dsn":"DSN....",
      	"open_connections":10,
      	"ping_result":0,
      	"ping_message":"",
		 },
      "<db2_name>": {
      	"dsn":"DSN....",
      	"open_connections":10,
      	"ping_result":0,
      	"ping_message":"",
		 }
   },
   "http":{
      "listening":":6040"
   },
   "nqm":{
      "heartbeat":{
         "count":21387
      }
   }
}

type Heartbeat

type Heartbeat struct {
	Count uint64 `json:"count"`
}

type Http

type Http struct {
	Listening string `json:"listening"`
}

type MysqlApi

type MysqlApi struct {
	// Address of MySQL-API
	Address string `json:"address"`
	// Error messages during the health request
	Message string `json:"message"`
	// Response of the health request
	Response *HealthView `json:"response"`
}

type Nqm

type Nqm struct {
	Heartbeat *Heartbeat `json:"heartbeat"`
}

type Rdb

type Rdb struct {
	Dsn             string `json:"dsn"`
	OpenConnections int    `json:"open_connections"`
	PingResult      int    `json:"ping_result"`
	PingMessage     string `json:"ping_message"`
}

Jump to

Keyboard shortcuts

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