user

package
v0.0.0-...-dec19c8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinErrFields

func JoinErrFields(vErrs validator.ValidationErrors) string

Types

type RequestValidator

type RequestValidator struct {
	// contains filtered or unexported fields
}

func NewRequestValidator

func NewRequestValidator(logger *zap.Logger) *RequestValidator

func (*RequestValidator) Validate

func (cv *RequestValidator) Validate(i any) error

type Service

type Service struct {
	*echo.Echo
	// contains filtered or unexported fields
}

Service is a user service that provides user registration in authentication.

func NewService

func NewService(cfg *ServiceConfig) (*Service, error)

type ServiceConfig

type ServiceConfig struct {
	Logger     *zap.Logger
	Store      Store
	APIPrefix  string
	AuthConfig auth.Config
}

type Store

type Store interface {
	Create(ctx context.Context, u *model.User) error
	Get(ctx context.Context, u *model.User) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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