service

package
v2.12.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

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 New

func New(storeApp auth.Storage, authApp auth.Provider) App

New creates new App from Config

func (App) Check

func (a App) Check(ctx context.Context, old, new model.User) error

Check user values

func (App) CheckRights added in v2.4.0

func (a App) CheckRights(ctx context.Context, id uint64) error

CheckRights of user ID

func (App) Create

func (a App) Create(ctx context.Context, user model.User) (model.User, error)

Create User

func (App) Delete

func (a App) Delete(ctx context.Context, user model.User) error

Delete User

func (App) Get

func (a App) Get(ctx context.Context, ID uint64) (model.User, error)

Get User

func (App) Update

func (a App) Update(ctx context.Context, user model.User) (model.User, error)

Update User

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL