user

package
v0.0.0-...-61222a5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DTO

type DTO struct {
	ID        uuid.UUID
	Username  string
	CreatedAt time.Time
	UpdatedAt time.Time
}

DTO is a representation of a user

type Repository

type Repository interface {
}

type Service

type Service interface {
}

func ProvideService

func ProvideService(repository Repository) Service

type User

type User struct {
	ID        uuid.UUID `bun:"type:uuid,default:uuid_generate_v4()"`
	Username  string
	CreatedAt time.Time
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

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