Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContactController ¶
type ContactController struct{}
ContactController will handle all `api/v1//user/contacts` APIs
func (*ContactController) Add ¶
func (*ContactController) Add(ctx *gin.Context)
Add will adds the new contact to the Users contact book
func (*ContactController) Delete ¶
func (*ContactController) Delete(ctx *gin.Context)
Delete will take the contact email id as argument in the URL and tries to delete that contact.
func (*ContactController) GetAll ¶
func (*ContactController) GetAll(ctx *gin.Context)
GetAll will returns all the contacts for the user.
func (*ContactController) Search ¶
func (*ContactController) Search(ctx *gin.Context)
Search will search for the contact details. Search can work with EmailId or Name of the contact or Both.
func (*ContactController) Update ¶
func (*ContactController) Update(ctx *gin.Context)
Update will try to update the existing contact for the specific user
type UserController ¶
type UserController struct{}
UserController will handle all the User related API's
func (*UserController) Register ¶
func (*UserController) Register(ctx *gin.Context)
Register will register a new user to the contacts book. User needs to be registered first to use all other API's
Click to show internal directories.
Click to hide internal directories.