user

package
v0.0.0-...-53ff5f4 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	CreateWithLoginPassword(ctx context.Context, login, pass string) (*types.User, error)
	CreateWithTelegram(ctx context.Context, id uint64, name, userN string) (*types.User, error)
	GetAll(ctx context.Context) ([]*types.User, error)
	Get(ctx context.Context, user *types.User) (*types.User, error)
	Update(ctx context.Context, user *types.User) (*types.User, error)
	UpdateMap(ctx context.Context, m map[string]interface{}) (bool, error)
	Block(ctx context.Context, userID uint32) (bool, error)
	Unblock(ctx context.Context, userID uint32) (bool, error)
}

func New

func New(db *gorm.DB) Service

func NewLoggingMiddleware

func NewLoggingMiddleware(l *log.Logger, next Service) Service

Jump to

Keyboard shortcuts

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