users

package
v0.0.0-...-ffd9c73 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package users is the HTTP handler for the users.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(logger Logger, proc Processor) *chi.Mux

Types

type Logger

type Logger interface {
	Debugf(format string, args ...any)
	Error(s string)
}

type Processor

type Processor interface {
	CreateUser(ctx context.Context, user models.User) error
	GetUserByID(ctx context.Context, id uint64) (user models.User, err error)
}

Jump to

Keyboard shortcuts

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