go-graphite / carbonapi

Usage of both value and pointer receivers GO-W1029
Anti-pattern
Major
2 months ago10 months old
Type "IronDBGroup" has both value and pointer receivers
672	return c.doTagQuery(ctx, false, query, limit)
673}
674
675func (c *IronDBGroup) ProbeTLDs(ctx context.Context) ([]string, merry.Error) {676	// ProbeTLDs is not really needed for IronDB but returning nil causing error
677	// so, let's return empty list
678	return []string{}, nil
Type "IronDBGroup" has both value and pointer receivers
668	return c.doTagQuery(ctx, true, query, limit)
669}
670
671func (c *IronDBGroup) TagValues(ctx context.Context, query string, limit int64) ([]string, merry.Error) {672	return c.doTagQuery(ctx, false, query, limit)
673}
674
Type "IronDBGroup" has both value and pointer receivers
664
665}
666
667func (c *IronDBGroup) TagNames(ctx context.Context, query string, limit int64) ([]string, merry.Error) {668	return c.doTagQuery(ctx, true, query, limit)
669}
670
Type "IronDBGroup" has both value and pointer receivers
552	return nil, nil, types.ErrNotSupportedByBackend
553}
554
555func (c *IronDBGroup) doTagQuery(ctx context.Context, isTagName bool, query string, limit int64) ([]string, merry.Error) {556	logger := c.logger
557	params := make(map[string][]string)
558	var result []string
Type "IronDBGroup" has both value and pointer receivers
548	return nil, nil, types.ErrNotImplementedYet
549}
550
551func (c *IronDBGroup) Stats(ctx context.Context) (*protov3.MetricDetailsResponse, *types.Stats, merry.Error) {552	return nil, nil, types.ErrNotSupportedByBackend
553}
554