handler

package
v0.0.0-...-94ea744 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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