users

package
v0.0.0-...-4f56fcc Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build() fx.Option

Types

type Repository

type Repository interface {
	FindName(ctx context.Context, name string) (*entities.User, error)
	List(ctx context.Context) ([]*entities.User, error)
	Insert(ctx context.Context, user *entities.User) (*entities.User, error)
}

type Service

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

func (*Service) GetUsers

func (s *Service) GetUsers(ctx context.Context) ([]*entities.User, error)

GetUsers obtém todos os usuários registrados.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳