service

package
v2.6.12 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 9 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 interface {
	Check(ctx context.Context, old, new model.User) error
	List(ctx context.Context, page, pageSize uint, sortKey string, sortDesc bool, filters map[string][]string) ([]model.User, uint, error)
	Get(ctx context.Context, ID uint64) (model.User, error)
	Create(ctx context.Context, o model.User) (model.User, error)
	Update(ctx context.Context, o model.User) (model.User, error)
	Delete(ctx context.Context, o model.User) error
	CheckRights(ctx context.Context, id uint64) error
}

App of package

func New

func New(store store.UserStorage, auth auth.Provider) App

New creates new App from Config

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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