user

package
v0.0.0-...-e656f7d Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Company

type Company struct {
	Name string
	CNPJ string
}

type Service

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

func NewService

func NewService(storage *Storage) Service

func (Service) Create

func (s Service) Create(ctx context.Context, user User) error

func (Service) User

func (s Service) User(username string) (User, error)

func (Service) UserByCPF

func (s Service) UserByCPF(cpf string) (User, error)

type Storage

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

func NewStorage

func NewStorage() *Storage

type User

type User struct {
	UserName     string
	Email        string
	CPF          string
	Name         string
	CompanyCNPJs []string
}

Jump to

Keyboard shortcuts

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