Documentation
¶
Index ¶
- type Config
- type Providers
- func (svc *Providers) FetchUserProfile(ctx context.Context, userId string) (*idmv1.Profile, error)
- func (svc *Providers) GetUserTransferTarget(profile *idmv1.Profile) string
- func (svc *Providers) PublishEvent(event proto.Message, retained bool)
- func (svc *Providers) ResolveOnCallTarget(ctx context.Context, dateTime time.Time, ignoreOverwrites bool, ...) (*pbx3cxv1.GetOnCallResponse, error)
- func (svc *Providers) ResolveOverwriteTarget(ctx context.Context, overwrite structs.Overwrite) (string, *idmv1.Profile, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IdmURL string `env:"IDM_URL" json:"idmURL"` RosterdURL string `env:"ROSTERD_URL" json:"rosterdUrl"` CustomerServiceURL string `env:"CUSTOMERD_URL" json:"customerdUrl"` Country string `env:"COUNTRY,default=AT" json:"country"` MongoURL string `env:"MONGO_URL" json:"mongoUrl"` Database string `env:"DATABASE" json:"database"` AllowedOrigins []string `env:"ALLOWED_ORIGINS" json:"allowedOrigins"` ListenAddress string `env:"LISTEN" json:"listenAddress"` RosterTypeName string `env:"ROSTER_TYPE" json:"rosterType"` UserPhoneExtensionKeys []string `env:"PHONE_EXTENSION_KEYS" json:"phoneExtensionKeys"` FailoverTransferTarget string `env:"FAILOVER_TRANSFER_TARGET" json:"failoverTransferTarget"` DefaultOnCallInboundNumber string `env:"DEFAULT_INBOUND_NUMBER" json:"defaultInboundNumber"` VoiceMailStoragePath string `env:"STORAGE_PATH" json:"storagePath"` EventsServiceURL string `env:"EVENTS_SERVICE_URL" json:"eventsServiceUrl"` NotificationSenderId string `env:"NOTIFICATION_SENDER_ID" json:"notificationSenderId"` }
type Providers ¶
type Providers struct { Roster rosterv1connect.RosterServiceClient Users idmv1connect.UserServiceClient Notify idmv1connect.NotifyServiceClient Roles idmv1connect.RoleServiceClient Customer customerv1connect.CustomerServiceClient Events eventsv1connect.EventServiceClient CallLogDB database.Database OverwriteDB oncalloverwrite.Database MailboxDatabase database.MailboxDatabase Config Config }
func (*Providers) FetchUserProfile ¶ added in v1.6.1
func (*Providers) GetUserTransferTarget ¶ added in v1.6.1
func (*Providers) PublishEvent ¶ added in v1.6.6
func (*Providers) ResolveOnCallTarget ¶ added in v1.6.1
Click to show internal directories.
Click to hide internal directories.