Documentation
¶
Index ¶
- func NewDB() (*gorm.DB, error)
- type App
- func (a *App) EventToString(event *gCalendar.Event) string
- func (a *App) HandleCalendarWebhook(c *gin.Context)
- func (a *App) HandleEventsCommand(c *tgbot.Context)
- func (a *App) HandleLoginWebhook(c *gin.Context)
- func (a *App) HandleNewEventCommand(c *tgbot.Context)
- func (a *App) HandleNewEventCommandResponse(c *tgbot.Context)
- func (a *App) HandleStartCommand(c *tgbot.Context)
- func (a *App) HandleStopCommand(c *tgbot.Context)
- func (a *App) HandleStopWatchCommand(c *tgbot.Context)
- func (a *App) HandleWatchCommand(c *tgbot.Context)
- func (a *App) IsExists(c *tgbot.Context)
- func (a *App) IsRegistered(c *tgbot.Context)
- func (a *App) IsSubscribed(c *tgbot.Context)
- func (a *App) SendMorningAgenda(c *tgbot.Context)
- func (a *App) SendNotifications(c *tgbot.Context)
- type Chat
- type Chats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) HandleCalendarWebhook ¶
func (*App) HandleEventsCommand ¶
func (*App) HandleLoginWebhook ¶
func (*App) HandleNewEventCommand ¶
func (*App) HandleNewEventCommandResponse ¶
func (*App) HandleStartCommand ¶
func (*App) HandleStopCommand ¶
func (*App) HandleStopWatchCommand ¶
func (*App) HandleWatchCommand ¶
func (*App) IsRegistered ¶
func (*App) IsSubscribed ¶
func (*App) SendMorningAgenda ¶
func (*App) SendNotifications ¶
type Chat ¶
type Chat struct { ChatId int64 `gorm:"primaryKey;autoIncrement:false"` Registered bool ChannelId *string ChannelExpiration *int64 ChannelResourceId *string CalendarId *string NextUpdateAt *int64 NextEventId *string Token *oauth2.Token `gorm:"serializer:json"` CreatedAt time.Time UpdatedAt time.Time }
type Chats ¶
type Chats struct {
// contains filtered or unexported fields
}
func (*Chats) DeleteChatById ¶
func (*Chats) GetActiveChats ¶
func (*Chats) UpdateChat ¶
Click to show internal directories.
Click to hide internal directories.