Documentation ¶
Index ¶
- func IsDuplicatedKeyError(err error) bool
- func IsNotFoundError(err error) bool
- type Storage
- func (s *Storage) Close()
- func (s *Storage) DelAdmin(ctx context.Context, email string, appName string) error
- func (s *Storage) DelApp(ctx context.Context, appName string) error
- func (s *Storage) GetApp(ctx context.Context, appName string) (models.App, error)
- func (s *Storage) GetAppID(ctx context.Context, appName string) (models.App, error)
- func (s *Storage) GetUser(ctx context.Context, email string) (models.User, error)
- func (s *Storage) IsAdmin(ctx context.Context, userID uint64, appName string) error
- func (s *Storage) IsCreator(ctx context.Context, userID uint64, appName string) error
- func (s *Storage) SaveUser(ctx context.Context, email string, passHash []byte) (uint64, error)
- func (s *Storage) SetAdmin(ctx context.Context, email string, appName string) error
- func (s *Storage) SetApp(ctx context.Context, appName string, appSecret string) (int, error)
- func (s *Storage) SetCreator(ctx context.Context, userID uint64, appID int) error
- func (s *Storage) UpdApp(ctx context.Context, appName, newAppName, newAppSecret string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDuplicatedKeyError ¶
func IsNotFoundError ¶
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) SetCreator ¶
Click to show internal directories.
Click to hide internal directories.