Documentation ¶
Index ¶
- func InitServiceClient(cfg *config.Config) (listingpb.ListingsServiceClient, error)
- type ServiceClient
- func (svc *ServiceClient) CreateListing(writer http.ResponseWriter, request *http.Request)
- func (svc *ServiceClient) DeleteListing(writer http.ResponseWriter, request *http.Request)
- func (svc *ServiceClient) GetListing(writer http.ResponseWriter, request *http.Request)
- func (svc *ServiceClient) GetListings(writer http.ResponseWriter, request *http.Request)
- func (svc *ServiceClient) GetListingsByUser(writer http.ResponseWriter, request *http.Request)
- func (svc *ServiceClient) UpdateListing(writer http.ResponseWriter, request *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitServiceClient ¶
Types ¶
type ServiceClient ¶
type ServiceClient struct { Client listingpb.ListingsServiceClient AuthClient authpb.AuthServiceClient }
func RegisterRouters ¶
func RegisterRouters(r *mux.Router, cfg *config.Config, authClient authpb.AuthServiceClient) *ServiceClient
func (*ServiceClient) CreateListing ¶
func (svc *ServiceClient) CreateListing(writer http.ResponseWriter, request *http.Request)
func (*ServiceClient) DeleteListing ¶
func (svc *ServiceClient) DeleteListing(writer http.ResponseWriter, request *http.Request)
func (*ServiceClient) GetListing ¶
func (svc *ServiceClient) GetListing(writer http.ResponseWriter, request *http.Request)
func (*ServiceClient) GetListings ¶
func (svc *ServiceClient) GetListings(writer http.ResponseWriter, request *http.Request)
func (*ServiceClient) GetListingsByUser ¶
func (svc *ServiceClient) GetListingsByUser(writer http.ResponseWriter, request *http.Request)
func (*ServiceClient) UpdateListing ¶
func (svc *ServiceClient) UpdateListing(writer http.ResponseWriter, request *http.Request)
Click to show internal directories.
Click to hide internal directories.