Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { GetByID(id string) (*User, error) GetByEmail(email string) (*User, error) Create(*User) error UserList() ([]*User, error) Update(*User) error Delete(*User) error }
Service ...
type User ¶
type User struct { ID string `json:"id" db:"id"` Email string `json:"email,omitempty" db:"email"` Name string `json:"name,omitempty" db:"name"` Password string `json:"password,omitempty" db:"password"` Verified bool `json:"verified" db:"verified"` CreatedAt time.Time `json:"created_at,omitempty" db:"created_at"` UpdatedAt time.Time `json:"updated_at,omitempty" db:"updated_at"` DeletedAt *time.Time `json:"-,omitempty" db:"deleted_at"` }
User ...
Click to show internal directories.
Click to hide internal directories.