diff --git a/pkg/limits/config.go b/pkg/limits/config.go new file mode 100644 index 0000000000000..06280ac67bab8 --- /dev/null +++ b/pkg/limits/config.go @@ -0,0 +1,4 @@ +package limits + +type Config struct { +} \ No newline at end of file diff --git a/pkg/limits/limiter.go b/pkg/limits/limiter.go new file mode 100644 index 0000000000000..f0a1dc19ca01d --- /dev/null +++ b/pkg/limits/limiter.go @@ -0,0 +1,37 @@ +package limits + +import ( + "context" + + "github.com/go-kit/log" + "github.com/grafana/dskit/services" + "github.com/prometheus/client_golang/prometheus" +) + +type IngestLimiter struct { + cfg Config + logger log.Logger + + services.Service +} + +func New(cfg Config, logger log.Logger, r prometheus.Registerer) (*IngestLimiter, error) { + l := &IngestLimiter{ + cfg: cfg, + logger: logger, + } + l.Service = services.NewBasicService(l.starting, l.running, l.stopping) + return l, nil +} + +func (l *IngestLimiter) starting(ctx context.Context) error { + return nil +} + +func (l *IngestLimiter) running(ctx context.Context) error { + return nil +} + +func (l *IngestLimiter) stopping(_ error) error { + return nil +} \ No newline at end of file