controller

package
v0.0.0-...-e7768f7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL