Files
zeekay b36a8788a5 feat: rebrand SigNoz → Hanzo O11y
Full rebrand of the SigNoz observability platform:
- Go module: github.com/SigNoz/signoz → github.com/hanzoai/o11y
- Frontend: @signozhq/* → @hanzo/o11y-*, posthog-js → @hanzo/insights
- Docker: signoz/* → ghcr.io/hanzoai/o11y*
- ClickHouse → Hanzo Datastore (hanzoai/datastore)
- Env vars: SIGNOZ_* → HANZO_*
- DB tables: signoz_* → o11y_*
- All branding, URLs, docs updated
- 2172 files changed
2026-03-12 02:10:29 -07:00

29 lines
738 B
Go

package emailingtest
import (
"context"
"github.com/hanzoai/o11y/pkg/emailing"
"github.com/hanzoai/o11y/pkg/types/emailtypes"
)
var _ emailing.Emailing = (*Provider)(nil)
type Provider struct {
SentEmailCountByTo map[string]int
SentEmailCountByTemplateName map[emailtypes.TemplateName]int
}
func New() *Provider {
return &Provider{
SentEmailCountByTo: make(map[string]int),
SentEmailCountByTemplateName: make(map[emailtypes.TemplateName]int),
}
}
func (provider *Provider) SendHTML(ctx context.Context, to string, subject string, templateName emailtypes.TemplateName, data map[string]any) error {
provider.SentEmailCountByTo[to]++
provider.SentEmailCountByTemplateName[templateName]++
return nil
}