users

package
v0.0.0-...-8075bb9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandlers

func NewHandlers(usersService Service) (*handlers, error)

func NewRepo

func NewRepo(db db.DB) *repo

func NewRoutes

func NewRoutes(handlers Handlers) *routes

func NewService

func NewService(repo Repo) *service

Types

type Handlers

type Handlers interface {
	GetUsers() httprouter.Handle
}

type Repo

type Repo interface {
	FindUsers(ctx context.Context) ([]*userTypes.User, error)
}

type Service

type Service interface {
	FindUsers(ctx context.Context) ([]*userTypes.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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