Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { UserID uuid.UUID Name string Email string Password string CreatedAt time.Time UpdatedAt time.Time }
Account ...
type AccountRepository ¶
AccountRepository ...
type AccountService ¶
type AccountService interface { Create(*Account) error Login(email string, password string) (uuid.UUID, error) }
AccountService ...
type Redirect ¶
type Redirect struct { URL string `json:"url"` Code string `json:"code"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` TotalClick int `json:"-"` UserID uuid.UUID `json:"-"` }
Redirect ...
type RedirectRepository ¶
type RedirectRepository interface { Find(code string) (*Redirect, error) Store(*Redirect) error FindByURL(url string) (*Redirect, error) }
RedirectRepository ...
type RedirectService ¶
RedirectService ...
Click to show internal directories.
Click to hide internal directories.