Documentation ¶
Index ¶
- Constants
- Variables
- type Plugin
- func (p *Plugin) AddToBroadcast(ctx context.Context, id int64, feeds []string) error
- func (p *Plugin) AddToBroadcastByHost(ctx context.Context, id int64, host string) error
- func (p *Plugin) ChatMemberUpdated(ctx context.Context, chat tgbotapi.Chat, deleted bool, ...) error
- func (p *Plugin) DeleteFromBroadcast(ctx context.Context, id int64, feeds []string) error
- func (p *Plugin) DeleteFromBroadcastByHost(ctx context.Context, id int64, host string) error
- func (p *Plugin) Init(log *zap.Logger, roomStorage storage.RoomStorage, ...) error
- func (p *Plugin) Name() string
- type Service
Constants ¶
View Source
const PluginName = "room_service"
Variables ¶
View Source
var ( ErrEmptyBroadcast = errors.New("room don't have broadcast feeds") ErrNotFoundFeeds = errors.New("feeds not found") )
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) AddToBroadcast ¶
func (*Plugin) AddToBroadcastByHost ¶
func (*Plugin) ChatMemberUpdated ¶
func (*Plugin) DeleteFromBroadcast ¶
func (*Plugin) DeleteFromBroadcastByHost ¶
func (*Plugin) Init ¶
func (p *Plugin) Init( log *zap.Logger, roomStorage storage.RoomStorage, feedStorage storage.FeedStorage, sender tgbotsender.TelegramSender, ) error
type Service ¶
type Service interface { ChatMemberUpdated(ctx context.Context, chat tgbotapi.Chat, deleted bool, permissions ...models.RoomPermission) error AddToBroadcastByHost(ctx context.Context, id int64, host string) error DeleteFromBroadcastByHost(ctx context.Context, id int64, host string) error AddToBroadcast(ctx context.Context, id int64, feeds []string) error DeleteFromBroadcast(ctx context.Context, id int64, feeds []string) error }
Click to show internal directories.
Click to hide internal directories.