Documentation ¶
Index ¶
- Constants
- type Page
- type PageUser
- type PageUserFull
- type Service
- func (s *Service) ContentAvatar(userUUID string, size string) ([]byte, error)
- func (s *Service) Data() *data.Connection
- func (s *Service) LogIn(key, login string, password string) (string, error)
- func (s *Service) LogOut(key string) error
- func (s *Service) SessionKeyDuration() int
- func (s *Service) SignUp(key, login, password string) (string, error)
- func (s *Service) UserGet(key string, uuid string) (PageUser, error)
- func (s *Service) UserSet(uuid, nick, name string) error
Constants ¶
View Source
const InvalidSize erres.Error = "invalid size"
View Source
const InvalidUserUUID erres.Error = "invalid user uuid"
View Source
const Overdue erres.Error = "key is overdue"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageUserFull ¶
type PageUserFull struct { Page data.ViewUserFull }
func (*PageUserFull) GetPage ¶
func (p *PageUserFull) GetPage() Page
func (*PageUserFull) IsPageUser ¶
func (p *PageUserFull) IsPageUser()
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) ContentAvatar ¶
func (*Service) Data ¶
func (s *Service) Data() *data.Connection
func (*Service) SessionKeyDuration ¶
Click to show internal directories.
Click to hide internal directories.