From 7ed8d021bfeef00e3ec123333e3fdf00aac0bd59 Mon Sep 17 00:00:00 2001 From: George Robinson Date: Thu, 9 Jan 2025 14:32:32 +0000 Subject: [PATCH] feat: add limits-frontend service --- pkg/limits/frontend/config.go | 4 ++++ pkg/limits/frontend/service.go | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 pkg/limits/frontend/config.go create mode 100644 pkg/limits/frontend/service.go diff --git a/pkg/limits/frontend/config.go b/pkg/limits/frontend/config.go new file mode 100644 index 0000000000000..27cc5dea33cad --- /dev/null +++ b/pkg/limits/frontend/config.go @@ -0,0 +1,4 @@ +package frontend + +type Config struct { +} diff --git a/pkg/limits/frontend/service.go b/pkg/limits/frontend/service.go new file mode 100644 index 0000000000000..6444eacb65630 --- /dev/null +++ b/pkg/limits/frontend/service.go @@ -0,0 +1,33 @@ +package frontend + +import ( + "context" + + "github.com/grafana/dskit/services" + "github.com/grafana/go-kit/log" + "github.com/prometheus/client_golang/prometheus" +) + +type IngestLimits struct { + cfg Config + logger log.Logger + services.Service +} + +func New(cfg Config, logger log.Logger, _ prometheus.Registerer) (*IngestLimits, error) { + l := &IngestLimits{} + l.Service = services.NewBasicService(l.starting, l.running, l.stopping) + return l, nil +} + +func (l *IngestLimits) starting(_ context.Context) error { + return nil +} + +func (l *IngestLimits) running(_ context.Context) error { + return nil +} + +func (l *IngestLimits) stopping(_ context.Context) error { + return nil +}