web

package
v0.0.0-...-9e299b5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoScalerClientApi

type AutoScalerClientApi struct{}

func (*AutoScalerClientApi) DeleteErrorTidb

func (*AutoScalerClientApi) DeleteErrorTidb(url string, name string, namesp string, addr string) error

func (*AutoScalerClientApi) DeleteTidb

func (*AutoScalerClientApi) DeleteTidb(url string, name string, namesp string, instances []string, weight string) ([]string, error)

func (*AutoScalerClientApi) GetAllTidb

func (*AutoScalerClientApi) GetAllTidb(url string) (string, error)

func (*AutoScalerClientApi) PostAddTidb

func (*AutoScalerClientApi) PostAddTidb(url string, name string, namesp string, scalertype string) error

type HttpApiClient

type HttpApiClient interface {
	PostAddTidb(url string, name string, namesp string, scalertype string) error
	DeleteTidb(url string, name string, namesp string, instances []string, weight string) ([]string, error)
	GetAllTidb(url string) (string, error)
	DeleteErrorTidb(url string, name string, namesp string, addr string) error
}

func NewAutoScalerClientApi

func NewAutoScalerClientApi() HttpApiClient

Jump to

Keyboard shortcuts

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