Documentation ¶
Overview ¶
Package user is a component to manage a user
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component implement interface component
func (*Component) AttachPrivateAPI ¶
func (component *Component) AttachPrivateAPI(group *gin.RouterGroup)
AttachPrivateAPI add the user micro-service user api with its dependencies
func (*Component) AttachPublicAPI ¶
func (component *Component) AttachPublicAPI(group *gin.RouterGroup)
AttachPublicAPI add the user micro-service public api with its dependencies
type RestInterface ¶
type RestInterface interface { Post(c *gin.Context) Get(c *gin.Context) PutEmail(c *gin.Context) PutPassword(c *gin.Context) Delete(c *gin.Context) GetByEmail(c *gin.Context) GetById(c *gin.Context) CheckCredentials(c *gin.Context) ValidateAccessToken(c *gin.Context) }
RestInterface is the model for the rest package of user
Directories ¶
Path | Synopsis |
---|---|
Package repo implement the function that contact the db required by the service package
|
Package repo implement the function that contact the db required by the service package |
Package rest implement the callback required by the user package
|
Package rest implement the callback required by the user package |
Package service implement the services required by the rest package
|
Package service implement the services required by the rest package |
Click to show internal directories.
Click to hide internal directories.