Documentation
¶
Index ¶
- type UserService
- func (userService *UserService) GetCurrentState(chatId types.ChatId) (repository.StateDbDto, error)
- func (userService *UserService) GetCurrentStateProcessor(currentState repository.StateDbDto) (states.UserState, error)
- func (userService *UserService) RegisterNewUser(sender types.Sender) (retMessage types.Message)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct { Rep *repository.Repository StateContext *stateUtils.CommonStateContext }
func NewUserService ¶
func NewUserService(rep *repository.Repository, notifier *notifier.SystemNotifier) *UserService
func (*UserService) GetCurrentState ¶
func (userService *UserService) GetCurrentState(chatId types.ChatId) (repository.StateDbDto, error)
func (*UserService) GetCurrentStateProcessor ¶
func (userService *UserService) GetCurrentStateProcessor(currentState repository.StateDbDto) (states.UserState, error)
func (*UserService) RegisterNewUser ¶
func (userService *UserService) RegisterNewUser(sender types.Sender) (retMessage types.Message)
Click to show internal directories.
Click to hide internal directories.