Documentation ¶
Index ¶
- type Providers
- func (p *Providers) FetchAllUserIds(ctx context.Context) ([]string, error)
- func (p *Providers) FetchAllUserProfiles(ctx context.Context) ([]*idmv1.Profile, error)
- func (p *Providers) PublishEvent(msg proto.Message, retained bool)
- func (p *Providers) RenderHTML(ctx context.Context, index string) (io.ReadCloser, error)
- func (p *Providers) VerifyUserExists(ctx context.Context, id string) error
- type ServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Providers ¶
type Providers struct { Users idmv1connect.UserServiceClient Roles idmv1connect.RoleServiceClient Notify idmv1connect.NotifyServiceClient Calendar calendarv1connect.CalendarServiceClient Events eventsv1connect.EventServiceClient Holidays calendarv1connect.HolidayServiceClient Templates fs.FS Datastore *database.DatabaseImpl Config *ServiceConfig }
func NewProviders ¶
func (*Providers) FetchAllUserIds ¶
func (*Providers) FetchAllUserProfiles ¶
func (*Providers) PublishEvent ¶ added in v1.4.17
func (*Providers) RenderHTML ¶
type ServiceConfig ¶
type ServiceConfig struct { // IdentityProvider holds the address of the identity provider. IdentityProvider string `env:"IDM_URL,default=http://cisidm:8081"` // DatabaseURL is the mongodb connection URL DatabaseURL string `env:"DATABASE_URL,required"` // DatabaseName is the name of the mongodb database. DatabaseName string `env:"DATABASE_NAME,required"` // Address holds the listen address of the HTTP server. Address string `env:"ADDRESS,default=:8080"` // AdminAddress holds the address of the unauthenticated admin endpoint. AdminAddress string `env:"ADMIN_ADDRESS,default=:8081"` // Country is the two-letter country code of legal residence used // for public holiday detection. Country string `env:"COUNTRY,default=AT"` // CalendarServiceURL holds the URL of the calendar service. CalendarService string `env:"CALENDAR_SERVICE_URL,default=http://ciscal:8080"` // PublicURL is the public URL to rosterd PublicURL string `env:"PUBLIC_URL"` // PreviewRosterURL should be set to the format string accepting year and month // (in this order) to build a public link to access a readonly version of the roster. // If left empty, this defaults to {{ PublicURL }}/roster/view/%s PreviewRosterURL string `env:"PREVIEW_ROSTER_URL"` // TemplatesDir might be set to a directory path containing mail and SMS template // files. If set, any files in TemplateDir will overwrite the embedded templates // of the final rosterd binary. TemplatesDir string `env:"TEMPLATES_PATH"` // AllowedOrigins configures the allowed CORS domains. AllowedOrigins []string `env:"ALLOWED_ORIGINS"` // RosterManagerRoleID holds the ID of the roster_manager role RosterManagerRoleID string `env:"ROSTER_MANAGER_ROLE_ID"` // Path or URL for the rosterd frontend StaticFiles string `env:"STATIC_FILES"` // Gotenberg holds the gotenberg URL Gotenberg string `env:"GOTENBERG"` // EventServiceUrl holds the URL of the event-service used to publish // messages. EventServiceUrl string `env:"EVENTS_SERVICE_URL,required"` }
Click to show internal directories.
Click to hide internal directories.