move topics to be defined under events.subscriber

This commit is contained in:
Mike Mason
2023-07-18 13:18:24 +00:00
parent fee4cf94ab
commit 99baf40c20
2 changed files with 10 additions and 4 deletions

View File

@@ -29,10 +29,16 @@ var AppConfig struct {
// EventsConfig defines the configuration setting up both subscriptions and publishing
type EventsConfig struct {
Publisher events.PublisherConfig
Subscriber events.SubscriberConfig
Subscriber SubscriberConfig
}
// OIDCClientConfig defines the configuration for OIDC Client Credentials.
type OIDCClientConfig struct {
Client oauth2x.Config
}
// SubscriberConfig extends events SubscriberConfig by adding topics.
type SubscriberConfig struct {
events.SubscriberConfig `mapstructure:",squash"`
Topics []string
}