server

package
v2.0.0-beta4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package server implements pmm-managed Server API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server represents service for checking PMM Server status and changing settings.

func NewServer

func NewServer(db *reform.DB, prometheus prometheusService, env []string) *Server

NewServer returns new server for Server service.

func (*Server) ChangeSettings

ChangeSettings changes PMM Server settings.

func (*Server) GetSettings

GetSettings returns current PMM Server settings.

func (*Server) UpdateSettings

func (s *Server) UpdateSettings() error

UpdateSettings updates settings in the database with environment variables values.

func (*Server) Version

Version returns PMM Server version.

Jump to

Keyboard shortcuts

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