user

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MIT Imports: 8 Imported by: 0

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(userStore model.UserStore, authApp model.AuthService) App

New creates new App from Config

func (App) Count added in v1.15.0

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

Count users

func (App) Create

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

Create user

func (App) StoreInContext

func (a App) StoreInContext(ctx context.Context) context.Context

StoreInContext read login user from context and store app user in context

Jump to

Keyboard shortcuts

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