Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` Mobile string `json:"mobile,omitempty"` Email string `json:"email,omitempty"` CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` }
User holds all data required to represent a user
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
Users struct holds all the dependencies required for the users package. And exposes all services provided by this package as its methods
func NewService ¶
NewService initializes the Users struct with all its dependencies and returns a new instance all dependencies of Users should be sent as arguments of NewService
func (*Users) CreateUser ¶
CreateUser creates a new user
Click to show internal directories.
Click to hide internal directories.