Add Event Producer

Update User to carry webhook from circle if assigned
Refactor notification handling and update models for webhook support
This commit is contained in:
Mo Tarbin 2025-02-09 20:15:28 -05:00
parent 44cb5501dd
commit 04d1894aea
17 changed files with 351 additions and 101 deletions

View file

@ -20,6 +20,7 @@ type Config struct {
EmailConfig EmailConfig `mapstructure:"email" yaml:"email"`
StripeConfig StripeConfig `mapstructure:"stripe" yaml:"stripe"`
OAuth2Config OAuth2Config `mapstructure:"oauth2" yaml:"oauth2"`
WebhookConfig WebhookConfig `mapstructure:"webhook" yaml:"webhook"`
IsDoneTickDotCom bool `mapstructure:"is_done_tick_dot_com" yaml:"is_done_tick_dot_com"`
IsUserCreationDisabled bool `mapstructure:"is_user_creation_disabled" yaml:"is_user_creation_disabled"`
}
@ -97,6 +98,11 @@ type OAuth2Config struct {
Name string `mapstructure:"name" yaml:"name"`
}
type WebhookConfig struct {
Timeout time.Duration `mapstructure:"timeout" yaml:"timeout" default:"5s"`
QueueSize int `mapstructure:"queue_size" yaml:"queue_size" default:"100"`
}
func NewConfig() *Config {
return &Config{
Telegram: TelegramConfig{