Documentation ¶
Index ¶
- type Memory
- func (s *Memory) Balance(ctx context.Context) (*entity.Balance, error)
- func (s *Memory) BalanceAdd(context.Context, *entity.Balance) error
- func (s *Memory) CardListGetUserID(ctx context.Context, u *entity.User) (*entity.CardList, error)
- func (s *Memory) Delete(ctx context.Context, u *entity.User) error
- func (s *Memory) Get(ctx context.Context, ind *entity.Prove) (*entity.Prove, error)
- func (s *Memory) GetAdmin(*entity.User) bool
- func (s *Memory) GetAll(ctx context.Context, u *entity.User) (*entity.User, error)
- func (s *Memory) GetAllUrls() (entity.CountURLs, error)
- func (s *Memory) GetAllUsers() (entity.CountUsers, error)
- func (s *Memory) GetBalance(context.Context, *entity.SolutionData) (float64, error)
- func (s *Memory) GetByID(context.Context, string) (*entity.Authentication, error)
- func (s *Memory) GetByLogin(context.Context, string) (*entity.Authentication, error)
- func (s *Memory) GetSolution(context.Context, *entity.SolutionData) error
- func (s *Memory) GroupList(context.Context) (*entity.GroupList, error)
- func (s *Memory) Post(ctx context.Context, ind *entity.Prove) error
- func (s *Memory) Put(ctx context.Context, ind *entity.Prove) error
- func (s *Memory) Read() error
- func (s *Memory) Registry(context.Context, *entity.Authentication) error
- func (s *Memory) Save() error
- func (s *Memory) SaveCard(context.Context, *entity.Card) error
- func (s *Memory) SaveGroup(ctx context.Context, c *entity.Group) error
- func (s *Memory) SavePass(context.Context, *entity.Pass) error
- func (s *Memory) SaveSolution(context.Context, *entity.Solution) error
- func (s *Memory) SaveTask(ctx context.Context, c *entity.Task) error
- func (s *Memory) SaveText(context.Context, *entity.Text) error
- func (s *Memory) TaskKey(context.Context, *entity.User, *entity.Task) (*entity.Task, error)
- func (s *Memory) TaskList(context.Context) (*entity.TaskList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
func (*Memory) CardListGetUserID ¶
func (*Memory) Delete ¶
Delete - удаляет URLы переданный в запросе, только если есть права данного пользователя.
func (*Memory) Get ¶
Get получить конкретный URL по идентификатору этого URL и только если этот линк записал текущий пользователь.
func (*Memory) GetAllUrls ¶
GetAllUrls получить все URL
func (*Memory) GetAllUsers ¶
func (s *Memory) GetAllUsers() (entity.CountUsers, error)
GetAllUsers получить всех пользователей
func (*Memory) GetBalance ¶
func (*Memory) GetByLogin ¶
func (*Memory) GetSolution ¶
func (*Memory) SaveSolution ¶
Click to show internal directories.
Click to hide internal directories.