Help us shape the future of Go! Take the 2026 Go Developer Survey

handlers

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package handlers implements gRPC API of pmm-managed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnotationsServer added in v1.14.1

type AnnotationsServer struct {
	Grafana *grafana.Client
}

func (*AnnotationsServer) Create added in v1.14.1

Create creates annotation with given text and tags ("pmm_annotation" is added automatically).

type BaseServer

type BaseServer struct {
	PMMVersion string
}

func (*BaseServer) Version

type DemoServer

type DemoServer struct{}

func (*DemoServer) Error

type LogsServer added in v1.14.1

type LogsServer struct {
	Logs *logs.Logs
}

func (*LogsServer) All added in v1.14.1

All returns last lines of all log files.

type MySQLServer added in v1.16.0

type MySQLServer struct {
	MySQL *mysql.Service
}

MySQLServer handles requests to manage MySQL nodes and services.

func (*MySQLServer) Add added in v1.16.0

Add adds new MySQL instance.

func (*MySQLServer) List added in v1.16.0

List returns a list of MySQL instances.

func (*MySQLServer) Remove added in v1.16.0

Remove removes MySQL instance.

type PostgreSQLServer added in v1.16.0

type PostgreSQLServer struct {
	PostgreSQL *postgresql.Service
}

PostgreSQLServer handles requests to manage PostgreSQL nodes and services.

func (*PostgreSQLServer) Add added in v1.16.0

Add adds new PostgreSQL instance.

func (*PostgreSQLServer) List added in v1.16.0

List returns a list of PostgreSQL instances.

func (*PostgreSQLServer) Remove added in v1.16.0

Remove removes PostgreSQL instance.

type RDSServer added in v1.5.0

type RDSServer struct {
	RDS *rds.Service
}

func (*RDSServer) Add added in v1.5.0

func (*RDSServer) Discover added in v1.5.0

func (*RDSServer) List added in v1.5.0

func (*RDSServer) Remove added in v1.5.0

type RemoteServer added in v1.16.0

type RemoteServer struct {
	Remote *remote.Service
}

RemoteServer handles requests to return Remote nodes and services list.

func (*RemoteServer) List added in v1.16.0

List returns a list of PostgreSQL instances.

type ScrapeConfigsServer

type ScrapeConfigsServer struct {
	Prometheus *prometheus.Service
}

func (*ScrapeConfigsServer) Create

Create creates a new scrape config. Errors: InvalidArgument(3) if some argument is not valid, AlreadyExists(6) if scrape config with that job name is already present.

func (*ScrapeConfigsServer) Delete

Delete removes existing scrape config by job name. Errors: NotFound(5) if no such scrape config is present.

func (*ScrapeConfigsServer) Get

Get returns a scrape config by job name. Errors: NotFound(5) if no such scrape config is present.

func (*ScrapeConfigsServer) List

List returns all scrape configs.

func (*ScrapeConfigsServer) Update added in v1.7.0

Update updates existing scrape config by job name. Errors: InvalidArgument(3) if some argument is not valid, NotFound(5) if no such scrape config is present, FailedPrecondition(9) if reachability check was requested and some scrape target can't be reached.

Jump to

Keyboard shortcuts

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