user

package
v0.0.0-...-1be15b7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserHandler

type UserHandler interface {
	Join(chatID int64)
	RequestLanguageChange(chatID int64)
	ChangeLanguage(language string, chatID int64, messageID int64)
}

UserHandler is an interface for user handler

type UserRepository

type UserRepository interface {
	GetByID(id int64) (*models.User, error)
	GetByChatID(chatID int64) (*models.User, error)
	Store(u *models.User) (int64, error)
	Update(u *models.User) error
	GetAll() ([]*models.User, error)
}

UserRepository is an interface for user repository

type UserService

type UserService interface {
	Create(chatID int64) (*models.User, error)
	GetAll() ([]*models.User, error)
	Update(chatID int64, language string) error
}

UserService is an interface for user service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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