Documentation ¶
Index ¶
- type App
- func (a App) Create(ctx context.Context, o model.User) (uint64, error)
- func (a App) Delete(ctx context.Context, o model.User) error
- func (a App) DoAtomic(ctx context.Context, action func(context.Context) error) error
- func (a App) Get(ctx context.Context, id uint64) (model.User, error)
- func (a App) IsAuthorized(ctx context.Context, user model.User, profile string) bool
- func (a App) Login(ctx context.Context, login, password string) (model.User, error)
- func (a App) Update(ctx context.Context, o model.User) error
- func (a App) UpdatePassword(ctx context.Context, o model.User) error
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App of package
func (App) IsAuthorized ¶
IsAuthorized checks user on profile
type Database ¶ added in v2.11.11
type Database interface { Get(context.Context, func(pgx.Row) error, string, ...interface{}) error Create(context.Context, string, ...interface{}) (uint64, error) Exec(context.Context, string, ...interface{}) error DoAtomic(context.Context, func(context.Context) error) error }
Database interface needed
Click to show internal directories.
Click to hide internal directories.