Documentation ¶
Index ¶
- Variables
- type AdminProvider
- type Apps
- func (a *Apps) DelApp(ctx context.Context, appName string) (bool, error)
- func (a *Apps) GetAppID(ctx context.Context, appName string) (int, string, error)
- func (a *Apps) SetApp(ctx context.Context, email string, appName string, appSecret string) (int, error)
- func (a *Apps) UpdApp(ctx context.Context, appName string, NewAppName string, NewAppSecret string) (bool, error)
- type AppsSetterDeleter
- type CreatorProvider
- type UserProvider
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AdminProvider ¶
type Apps ¶
type Apps struct {
// contains filtered or unexported fields
}
func New ¶
func New(log *slog.Logger, appsSetterDeleter AppsSetterDeleter, userProvider UserProvider, creatorProvider CreatorProvider, adminProvider AdminProvider) *Apps
New returns a new instanse of the Permissions service
type AppsSetterDeleter ¶
type AppsSetterDeleter interface { GetAppID(ctx context.Context, appName string) (models.App, error) GetApp(ctx context.Context, appName string) (models.App, error) SetApp(ctx context.Context, appName string, appSecret string) (int, error) UpdApp(ctx context.Context, appNameOlnd string, appName string, appSecret string) error DelApp(ctx context.Context, appName string) error }
type CreatorProvider ¶
Click to show internal directories.
Click to hide internal directories.