Documentation ¶
Overview ¶
Package server implements pmm-managed Server API.
Index ¶
- type Server
- func (s *Server) ChangeSettings(ctx context.Context, req *serverpb.ChangeSettingsRequest) (*serverpb.ChangeSettingsResponse, error)
- func (s *Server) GetSettings(ctx context.Context, req *serverpb.GetSettingsRequest) (*serverpb.GetSettingsResponse, error)
- func (s *Server) UpdateSettings() error
- func (s *Server) Version(ctx context.Context, req *serverpb.VersionRequest) (*serverpb.VersionResponse, error)
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 (*Server) ChangeSettings ¶
func (s *Server) ChangeSettings(ctx context.Context, req *serverpb.ChangeSettingsRequest) (*serverpb.ChangeSettingsResponse, error)
ChangeSettings changes PMM Server settings.
func (*Server) GetSettings ¶
func (s *Server) GetSettings(ctx context.Context, req *serverpb.GetSettingsRequest) (*serverpb.GetSettingsResponse, error)
GetSettings returns current PMM Server settings.
func (*Server) UpdateSettings ¶
UpdateSettings updates settings in the database with environment variables values.
func (*Server) Version ¶
func (s *Server) Version(ctx context.Context, req *serverpb.VersionRequest) (*serverpb.VersionResponse, error)
Version returns PMM Server version.
Click to show internal directories.
Click to hide internal directories.