Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { GetChatState(chatID int64) *entity.ChatState SetChatState(chatID int64, update *entity.ChatStateUpdate) (*entity.ChatState, error) GetSubscription(subID string) (*entity.Subscription, error) CreateSubscription(chatID int64, name string) (*entity.Subscription, error) UpdateSubscription(subID string, subUpdate *entity.SubscriptionUpdate) (*entity.Subscription, error) DeleteSubscription(subID string) error GetSubscriptions(chatID int64) []entity.Subscription GetEventSubscribers(location entity.EventData) (chatIDs []int64, err error) }
type Service ¶
type Service interface { GetChatState(chatID int64) *entity.ChatState SetChatState(chatID int64, update *entity.ChatStateUpdate) (*entity.ChatState, error) CreateSubscription(chatID int64, name string) (*entity.Subscription, error) GetSubscription(subID string) (*entity.Subscription, error) UpdateSubscription(subID string, subUpdate *entity.SubscriptionUpdate) (*entity.Subscription, error) DeleteSubscription(subID string) error GetSubscriptions(chatID int64) []entity.Subscription GetEventSubscribers(location entity.EventData) (chatIDs []int64, err error) SetAwaitUserInput(chatID int64, awaitInput string) error }
func NewService ¶
func NewService(r Repository) Service
Click to show internal directories.
Click to hide internal directories.