github.com/grafana/pyroscope@v1.18.0/pkg/settings/store.go (about)

     1  package settings
     2  
     3  import (
     4  	"context"
     5  
     6  	settingsv1 "github.com/grafana/pyroscope/api/gen/proto/go/settings/v1"
     7  )
     8  
     9  type store interface {
    10  	// Get settings for a tenant.
    11  	Get(ctx context.Context, tenantID string) ([]*settingsv1.Setting, error)
    12  
    13  	// Set a setting for a tenant.
    14  	Set(ctx context.Context, tenantID string, setting *settingsv1.Setting) (*settingsv1.Setting, error)
    15  
    16  	// Delete a setting for a tenant.
    17  	Delete(ctx context.Context, tenantID string, name string, modifiedAtMs int64) error
    18  
    19  	// Close the store.
    20  	Close() error
    21  }