Versions in this module Expand all Collapse all v1 v1.16.0 Oct 31, 2018 Changes in this version + type Instance struct + Node models.RemoteNode + Service models.PostgreSQLService + type Service struct + func NewService(config *ServiceConfig) (*Service, error) + func (svc *Service) Add(ctx context.Context, name, address string, port uint32, ...) (int32, error) + func (svc *Service) ApplyPrometheusConfiguration(ctx context.Context, q *reform.Querier) error + func (svc *Service) List(ctx context.Context) ([]Instance, error) + func (svc *Service) Remove(ctx context.Context, id int32) error + func (svc *Service) Restore(ctx context.Context, tx *reform.TX) error + type ServiceConfig struct + DB *reform.DB + PortsRegistry *ports.Registry + PostgresExporterPath string + Prometheus *prometheus.Service + Supervisor services.Supervisor