Documentation ¶
Index ¶
- func CreateMerchant(w http.ResponseWriter, r *http.Request)
- func CreateTeam(w http.ResponseWriter, r *http.Request)
- func DeleteMerchant(w http.ResponseWriter, r *http.Request)
- func DeleteTeam(w http.ResponseWriter, r *http.Request)
- func GetAllMerchant(w http.ResponseWriter, r *http.Request)
- func GetAllTeam(w http.ResponseWriter, r *http.Request)
- func GetMerchant(w http.ResponseWriter, r *http.Request)
- func GetTeam(w http.ResponseWriter, r *http.Request)
- func GetTeamsForMerchant(w http.ResponseWriter, r *http.Request)
- func UpdateMerchant(w http.ResponseWriter, r *http.Request)
- func UpdateTeam(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMerchant ¶
func CreateMerchant(w http.ResponseWriter, r *http.Request)
CreateMerchant create a merchant in the postgres db
func CreateTeam ¶
func CreateTeam(w http.ResponseWriter, r *http.Request)
CreateTeam create a team in the postgres db
func DeleteMerchant ¶
func DeleteMerchant(w http.ResponseWriter, r *http.Request)
DeleteMerchant delete merchant's detail in the postgres db
func DeleteTeam ¶
func DeleteTeam(w http.ResponseWriter, r *http.Request)
DeleteTeam delete team's detail in the postgres db
func GetAllMerchant ¶
func GetAllMerchant(w http.ResponseWriter, r *http.Request)
GetAllMerchant will return all the merchants
func GetAllTeam ¶
func GetAllTeam(w http.ResponseWriter, r *http.Request)
GetAllTeam will return all the teams
func GetMerchant ¶
func GetMerchant(w http.ResponseWriter, r *http.Request)
GetMerchant will return a single merchant by its id
func GetTeam ¶
func GetTeam(w http.ResponseWriter, r *http.Request)
GetTeam will return a single team by its id
func GetTeamsForMerchant ¶
func GetTeamsForMerchant(w http.ResponseWriter, r *http.Request)
GetTeamsForMerchant return Teams related to given merchantID
func UpdateMerchant ¶
func UpdateMerchant(w http.ResponseWriter, r *http.Request)
UpdateMerchant update merchant's detail in the postgres db
func UpdateTeam ¶
func UpdateTeam(w http.ResponseWriter, r *http.Request)
UpdateTeam update team's detail in the postgres db
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.