github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/history/noop.go (about)

     1  package history
     2  
     3  import "context"
     4  
     5  type NoopManager struct{}
     6  
     7  func (*NoopManager) Add(_ context.Context, _ *Entry) (QueryID, error) {
     8  	return "", nil
     9  }
    10  func (*NoopManager) Get(_ context.Context, _ QueryID) (*Entry, error) {
    11  	return nil, nil
    12  }
    13  func (*NoopManager) List(_ context.Context, _ string) ([]*Entry, string, error) {
    14  	return []*Entry{}, "", nil
    15  }