Documentation ¶
Index ¶
- func HandleCreate(providers core.ProviderStore) http.HandlerFunc
- func HandleDelete(providers core.ProviderStore, users core.UserStore) http.HandlerFunc
- func HandleFind(providers core.ProviderStore, users core.UserStore) http.HandlerFunc
- func HandleListUser(providers core.ProviderStore) http.HandlerFunc
- func HandleSync(providers core.ProviderStore) http.HandlerFunc
- func HandleUpdate(providers core.ProviderStore, users core.UserStore) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCreate ¶
func HandleCreate(providers core.ProviderStore) http.HandlerFunc
HandleCreate returns http.HandlerFunc which writes JSON encoded result about creating provider to the http response body.
func HandleDelete ¶
func HandleDelete(providers core.ProviderStore, users core.UserStore) http.HandlerFunc
HandleDelete returns an http.HandlerFunc that writes JSON encoded result about deleting provider to the http response body.
func HandleFind ¶
func HandleFind(providers core.ProviderStore, users core.UserStore) http.HandlerFunc
HandleFind writes JSON encoded provider data to the http response body.
func HandleListUser ¶
func HandleListUser(providers core.ProviderStore) http.HandlerFunc
HandleListUser returns http.HandlerFunc that writes JSON encoded list of providers based on user id to http response body.
func HandleSync ¶
func HandleSync(providers core.ProviderStore) http.HandlerFunc
HandleSync returns an http.HandlerFunc that writes JSON encoded result about syncing provider to the http response body.
func HandleUpdate ¶
func HandleUpdate(providers core.ProviderStore, users core.UserStore) http.HandlerFunc
HandleUpdate returns http.HandlerFunc which writes JSON encoded result about updating provider to the http response body.
Types ¶
This section is empty.