Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StatusAll = [4]string{ StatusActive.String(), StatusUnconfirmed.String(), }
StatusAll variable with all the status converted into string
Functions ¶
func AddPublicRouter ¶
func AddPublicRouter(method, route string)
AddPublicRouter add public routers
Types ¶
type AppModule ¶
type AppModule struct{}
var App AppModule
func (AppModule) AfterStart ¶
func (a AppModule) AfterStart()
func (AppModule) BeforeStart ¶
func (a AppModule) BeforeStart()
func (AppModule) GetMiddlewares ¶
func (AppModule) GetRouterGroup ¶
func (a AppModule) GetRouterGroup() *[]rest.RouteGroup
func (AppModule) GetRouters ¶
func (a AppModule) GetRouters() *[]rest.RouteGroup
type Dao ¶
type DaoDatabase ¶
type DaoDatabase struct{}
func (DaoDatabase) Create ¶
func (d DaoDatabase) Create(v Model) error
func (DaoDatabase) Delete ¶
func (d DaoDatabase) Delete(v Model) error
func (DaoDatabase) FindByEmail ¶
func (d DaoDatabase) FindByEmail(email string) (r Model, err error)
func (DaoDatabase) Update ¶
func (d DaoDatabase) Update(v Model) error
type Model ¶
type Model struct { Id string `json:"id"` CreatedAt time.Time `json:"createdAt,omitempty"` UpdatedAt time.Time `json:"updatedAt,omitempty"` Status Status `json:"status,omitempty"` Name string `json:"name,omitempty"` Password string `json:"password,omitempty"` Email string `json:"email,omitempty"` Age uint `json:"age,omitempty"` ConfirmationCode string `json:"confirmationCode,omitempty"` }
Model structure to represent a user on the service, this model has to represent everything related to the user
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
NewService factory to Create mew userService
Click to show internal directories.
Click to hide internal directories.