Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TemplatesFS ¶
TemplatesFS returns the embedded templates filesystem.
Types ¶
type Deps ¶
type Deps struct {
Store *store.Store
AuthMW *auth.Middleware
LoginRL *auth.LoginRateLimiter
Hub *ws.Hub
Telegram TelegramConfigurator
AssetsFS fs.FS
Version string
}
type TelegramConfigurator ¶
type TelegramConfigurator interface {
ConfigureTelegram(ctx context.Context, userID, botToken, allowedUserIDs string) (string, error)
ClearTelegram(ctx context.Context, userID string) error
TestTelegram(ctx context.Context, userID, chatID string) error
}
TelegramConfigurator lets the browser /account page configure Telegram using the same validated/encrypted/poller-managed path as the JSON API.
Click to show internal directories.
Click to hide internal directories.