Documentation
¶
Overview ¶
Package config holds configuration structs used across the application. Defined configs:
- AuthConfig: holds authentication configuration.
- SenderConfig: holds sender configuration.
- CacheConfig: holds caching configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
ClientID string
Tenant string
Email string
Scopes []string
AuthMethod Method
}
AuthConfig holds configuration for authentication. All fields are required - they are needed to acquire tokens via MSAL.
type CacheConfig ¶
type CacheConfig struct {
Mode CacheMode
Provider CacheProvider
Path *string
}
CacheConfig holds configuration for caching.
type CacheMode ¶
type CacheMode string
CacheMode defines the caching strategy used by the application.
const ( // CacheDisabled indicates that caching is turned off. CacheDisabled CacheMode = "DISABLED" // CacheSync indicates that cache operations are performed synchronously. CacheSync CacheMode = "SYNC" // CacheAsync indicates that cache operations are performed asynchronously. CacheAsync CacheMode = "ASYNC" )
type CacheProvider ¶
type CacheProvider string
CacheProvider defines the backend used for caching.
const ( // CacheProviderJSONFile indicates that json-file cache is used. CacheProviderJSONFile CacheProvider = "JSON_FILE" )
type SenderConfig ¶
SenderConfig defines configuration for the request sender which connects with the Microsoft Graph API. MaxRetryDelay and Timeout are in seconds.
Click to show internal directories.
Click to hide internal directories.