handler

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnSubAllButtonUnique       = "unsub_all_confirm_btn"
	CancelUnSubAllButtonUnique = "unsub_all_cancel_btn"
)
View Source
const (
	MaxSubsSizePerPage = 50
)
View Source
const (
	NotificationSwitchButtonUnique = "set_toggle_notice_btn"
)
View Source
const (
	RemoveSubscriptionItemButtonUnique = "unsub_feed_item_btn"
)
View Source
const (
	SetFeedItemButtonUnique = "set_feed_item_btn"
)
View Source
const (
	SetSubscriptionTagButtonUnique = "set_set_sub_tag_btn"
)
View Source
const (
	SubscriptionSwitchButtonUnique = "set_toggle_update_btn"
)
View Source
const (
	TelegraphSwitchButtonUnique = "set_toggle_telegraph_btn"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActiveAll

type ActiveAll struct {
	// contains filtered or unexported fields
}

func NewActiveAll

func NewActiveAll(core *core.Core) *ActiveAll

func (*ActiveAll) Command

func (a *ActiveAll) Command() string

func (*ActiveAll) Description

func (a *ActiveAll) Description() string

func (*ActiveAll) Handle

func (a *ActiveAll) Handle(ctx tb.Context) error

func (*ActiveAll) Middlewares

func (a *ActiveAll) Middlewares() []tb.MiddlewareFunc

type AddSubscription

type AddSubscription struct {
	// contains filtered or unexported fields
}

func NewAddSubscription

func NewAddSubscription(core *core.Core) *AddSubscription

func (*AddSubscription) Command

func (a *AddSubscription) Command() string

func (*AddSubscription) Description

func (a *AddSubscription) Description() string

func (*AddSubscription) Handle

func (a *AddSubscription) Handle(ctx tb.Context) error

func (*AddSubscription) Middlewares

func (a *AddSubscription) Middlewares() []tb.MiddlewareFunc

type ButtonHandler

type ButtonHandler interface {
	tb.CallbackEndpoint
	// Description of Command
	Description() string
	// Handle function
	Handle(ctx tb.Context) error
	// Middlewares Handler middlewares
	Middlewares() []tb.MiddlewareFunc
}

type CancelRemoveAllSubscriptionButton

type CancelRemoveAllSubscriptionButton struct {
}

func NewCancelRemoveAllSubscriptionButton

func NewCancelRemoveAllSubscriptionButton() *CancelRemoveAllSubscriptionButton

func (*CancelRemoveAllSubscriptionButton) CallbackUnique

func (r *CancelRemoveAllSubscriptionButton) CallbackUnique() string

func (*CancelRemoveAllSubscriptionButton) Description

func (r *CancelRemoveAllSubscriptionButton) Description() string

func (*CancelRemoveAllSubscriptionButton) Handle

func (*CancelRemoveAllSubscriptionButton) Middlewares

type CommandHandler

type CommandHandler interface {
	// Command string of bot Command
	Command() string
	// Description of Command
	Description() string
	// Handle function
	Handle(ctx tb.Context) error
	// Middlewares Handler middlewares
	Middlewares() []tb.MiddlewareFunc
}

type Export

type Export struct {
	// contains filtered or unexported fields
}

func NewExport

func NewExport(core *core.Core) *Export

func (*Export) Command

func (e *Export) Command() string

func (*Export) Description

func (e *Export) Description() string

func (*Export) Handle

func (e *Export) Handle(ctx tb.Context) error

func (*Export) Middlewares

func (e *Export) Middlewares() []tb.MiddlewareFunc

type Help

type Help struct {
}

func NewHelp

func NewHelp() *Help

func (*Help) Command

func (h *Help) Command() string

func (*Help) Description

func (h *Help) Description() string

func (*Help) Handle

func (h *Help) Handle(ctx tb.Context) error

func (*Help) Middlewares

func (h *Help) Middlewares() []tb.MiddlewareFunc

type Import

type Import struct {
}

func NewImport

func NewImport() *Import

func (*Import) Command

func (i *Import) Command() string

func (*Import) Description

func (i *Import) Description() string

func (*Import) Handle

func (i *Import) Handle(ctx tb.Context) error

func (*Import) Middlewares

func (i *Import) Middlewares() []tb.MiddlewareFunc

type ListSubscription

type ListSubscription struct {
	// contains filtered or unexported fields
}

func NewListSubscription

func NewListSubscription(core *core.Core) *ListSubscription

func (*ListSubscription) Command

func (l *ListSubscription) Command() string

func (*ListSubscription) Description

func (l *ListSubscription) Description() string

func (*ListSubscription) Handle

func (l *ListSubscription) Handle(ctx tb.Context) error

func (*ListSubscription) Middlewares

func (l *ListSubscription) Middlewares() []tb.MiddlewareFunc

type NotificationSwitchButton

type NotificationSwitchButton struct {
	// contains filtered or unexported fields
}

func NewNotificationSwitchButton

func NewNotificationSwitchButton(bot *tb.Bot, core *core.Core) *NotificationSwitchButton

func (*NotificationSwitchButton) CallbackUnique

func (b *NotificationSwitchButton) CallbackUnique() string

func (*NotificationSwitchButton) Description

func (b *NotificationSwitchButton) Description() string

func (*NotificationSwitchButton) Handle

func (b *NotificationSwitchButton) Handle(ctx tb.Context) error

func (*NotificationSwitchButton) Middlewares

func (b *NotificationSwitchButton) Middlewares() []tb.MiddlewareFunc

type OnDocument

type OnDocument struct {
	// contains filtered or unexported fields
}

func NewOnDocument

func NewOnDocument(bot *tb.Bot, core *core.Core) *OnDocument

func (*OnDocument) Command

func (o *OnDocument) Command() string

func (*OnDocument) Description

func (o *OnDocument) Description() string

func (*OnDocument) Handle

func (o *OnDocument) Handle(ctx tb.Context) error

func (*OnDocument) Middlewares

func (o *OnDocument) Middlewares() []tb.MiddlewareFunc

type PauseAll

type PauseAll struct {
	// contains filtered or unexported fields
}

func NewPauseAll

func NewPauseAll(core *core.Core) *PauseAll

func (*PauseAll) Command

func (p *PauseAll) Command() string

func (*PauseAll) Description

func (p *PauseAll) Description() string

func (*PauseAll) Handle

func (p *PauseAll) Handle(ctx tb.Context) error

func (*PauseAll) Middlewares

func (p *PauseAll) Middlewares() []tb.MiddlewareFunc

type Ping

type Ping struct {
	// contains filtered or unexported fields
}

func NewPing

func NewPing(bot *tb.Bot) *Ping

NewPing new ping cmd handler

func (*Ping) Command

func (p *Ping) Command() string

func (*Ping) Description

func (p *Ping) Description() string

func (*Ping) Handle

func (p *Ping) Handle(ctx tb.Context) error

func (*Ping) Middlewares

func (p *Ping) Middlewares() []tb.MiddlewareFunc

type RemoveAllSubscription

type RemoveAllSubscription struct {
}

func NewRemoveAllSubscription

func NewRemoveAllSubscription() *RemoveAllSubscription

func (RemoveAllSubscription) Command

func (r RemoveAllSubscription) Command() string

func (RemoveAllSubscription) Description

func (r RemoveAllSubscription) Description() string

func (RemoveAllSubscription) Handle

func (r RemoveAllSubscription) Handle(ctx tb.Context) error

func (RemoveAllSubscription) Middlewares

func (r RemoveAllSubscription) Middlewares() []tb.MiddlewareFunc

type RemoveAllSubscriptionButton

type RemoveAllSubscriptionButton struct {
	// contains filtered or unexported fields
}

func NewRemoveAllSubscriptionButton

func NewRemoveAllSubscriptionButton(core *core.Core) *RemoveAllSubscriptionButton

func (*RemoveAllSubscriptionButton) CallbackUnique

func (r *RemoveAllSubscriptionButton) CallbackUnique() string

func (*RemoveAllSubscriptionButton) Description

func (r *RemoveAllSubscriptionButton) Description() string

func (*RemoveAllSubscriptionButton) Handle

func (*RemoveAllSubscriptionButton) Middlewares

func (r *RemoveAllSubscriptionButton) Middlewares() []tb.MiddlewareFunc

type RemoveSubscription

type RemoveSubscription struct {
	// contains filtered or unexported fields
}

func NewRemoveSubscription

func NewRemoveSubscription(bot *tb.Bot, core *core.Core) *RemoveSubscription

func (*RemoveSubscription) Command

func (s *RemoveSubscription) Command() string

func (*RemoveSubscription) Description

func (s *RemoveSubscription) Description() string

func (*RemoveSubscription) Handle

func (s *RemoveSubscription) Handle(ctx tb.Context) error

func (*RemoveSubscription) Middlewares

func (s *RemoveSubscription) Middlewares() []tb.MiddlewareFunc

type RemoveSubscriptionItemButton

type RemoveSubscriptionItemButton struct {
	// contains filtered or unexported fields
}

func NewRemoveSubscriptionItemButton

func NewRemoveSubscriptionItemButton(core *core.Core) *RemoveSubscriptionItemButton

func (*RemoveSubscriptionItemButton) CallbackUnique

func (r *RemoveSubscriptionItemButton) CallbackUnique() string

func (*RemoveSubscriptionItemButton) Description

func (r *RemoveSubscriptionItemButton) Description() string

func (*RemoveSubscriptionItemButton) Handle

func (*RemoveSubscriptionItemButton) Middlewares

func (r *RemoveSubscriptionItemButton) Middlewares() []tb.MiddlewareFunc

type Set

type Set struct {
	// contains filtered or unexported fields
}

func NewSet

func NewSet(bot *tb.Bot, core *core.Core) *Set

func (*Set) Command

func (s *Set) Command() string

func (*Set) Description

func (s *Set) Description() string

func (*Set) Handle

func (s *Set) Handle(ctx tb.Context) error

func (*Set) Middlewares

func (s *Set) Middlewares() []tb.MiddlewareFunc

type SetFeedItemButton

type SetFeedItemButton struct {
	// contains filtered or unexported fields
}

func NewSetFeedItemButton

func NewSetFeedItemButton(bot *tb.Bot, core *core.Core) *SetFeedItemButton

func (*SetFeedItemButton) CallbackUnique

func (r *SetFeedItemButton) CallbackUnique() string

func (*SetFeedItemButton) Description

func (r *SetFeedItemButton) Description() string

func (*SetFeedItemButton) Handle

func (r *SetFeedItemButton) Handle(ctx tb.Context) error

func (*SetFeedItemButton) Middlewares

func (r *SetFeedItemButton) Middlewares() []tb.MiddlewareFunc

type SetFeedTag

type SetFeedTag struct {
	// contains filtered or unexported fields
}

func NewSetFeedTag

func NewSetFeedTag(core *core.Core) *SetFeedTag

func (*SetFeedTag) Command

func (s *SetFeedTag) Command() string

func (*SetFeedTag) Description

func (s *SetFeedTag) Description() string

func (*SetFeedTag) Handle

func (s *SetFeedTag) Handle(ctx tb.Context) error

func (*SetFeedTag) Middlewares

func (s *SetFeedTag) Middlewares() []tb.MiddlewareFunc

type SetSubscriptionTagButton

type SetSubscriptionTagButton struct {
	// contains filtered or unexported fields
}

func NewSetSubscriptionTagButton

func NewSetSubscriptionTagButton(bot *tb.Bot) *SetSubscriptionTagButton

func (*SetSubscriptionTagButton) CallbackUnique

func (b *SetSubscriptionTagButton) CallbackUnique() string

func (*SetSubscriptionTagButton) Description

func (b *SetSubscriptionTagButton) Description() string

func (*SetSubscriptionTagButton) Handle

func (b *SetSubscriptionTagButton) Handle(ctx tb.Context) error

func (*SetSubscriptionTagButton) Middlewares

func (b *SetSubscriptionTagButton) Middlewares() []tb.MiddlewareFunc

type SetUpdateInterval

type SetUpdateInterval struct {
	// contains filtered or unexported fields
}

func NewSetUpdateInterval

func NewSetUpdateInterval(core *core.Core) *SetUpdateInterval

func (*SetUpdateInterval) Command

func (s *SetUpdateInterval) Command() string

func (*SetUpdateInterval) Description

func (s *SetUpdateInterval) Description() string

func (*SetUpdateInterval) Handle

func (s *SetUpdateInterval) Handle(ctx tb.Context) error

func (*SetUpdateInterval) Middlewares

func (s *SetUpdateInterval) Middlewares() []tb.MiddlewareFunc

type Start

type Start struct {
}

func NewStart

func NewStart() *Start

func (*Start) Command

func (s *Start) Command() string

func (*Start) Description

func (s *Start) Description() string

func (*Start) Handle

func (s *Start) Handle(ctx tb.Context) error

func (*Start) Middlewares

func (s *Start) Middlewares() []tb.MiddlewareFunc

type SubscriptionSwitchButton

type SubscriptionSwitchButton struct {
	// contains filtered or unexported fields
}

func NewSubscriptionSwitchButton

func NewSubscriptionSwitchButton(bot *tb.Bot, core *core.Core) *SubscriptionSwitchButton

func (*SubscriptionSwitchButton) CallbackUnique

func (b *SubscriptionSwitchButton) CallbackUnique() string

func (*SubscriptionSwitchButton) Description

func (b *SubscriptionSwitchButton) Description() string

func (*SubscriptionSwitchButton) Handle

func (b *SubscriptionSwitchButton) Handle(ctx tb.Context) error

func (*SubscriptionSwitchButton) Middlewares

func (b *SubscriptionSwitchButton) Middlewares() []tb.MiddlewareFunc

type TelegraphSwitchButton

type TelegraphSwitchButton struct {
	// contains filtered or unexported fields
}

func NewTelegraphSwitchButton

func NewTelegraphSwitchButton(bot *tb.Bot, core *core.Core) *TelegraphSwitchButton

func (*TelegraphSwitchButton) CallbackUnique

func (b *TelegraphSwitchButton) CallbackUnique() string

func (*TelegraphSwitchButton) Description

func (b *TelegraphSwitchButton) Description() string

func (*TelegraphSwitchButton) Handle

func (b *TelegraphSwitchButton) Handle(ctx tb.Context) error

func (*TelegraphSwitchButton) Middlewares

func (b *TelegraphSwitchButton) Middlewares() []tb.MiddlewareFunc

type Version

type Version struct {
}

func NewVersion

func NewVersion() *Version

func (*Version) Command

func (c *Version) Command() string

func (*Version) Description

func (c *Version) Description() string

func (*Version) Handle

func (c *Version) Handle(ctx tb.Context) error

func (*Version) Middlewares

func (c *Version) Middlewares() []tb.MiddlewareFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL