listings

package
v0.0.0-...-4b190b9 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitServiceClient

func InitServiceClient(cfg *config.Config) (listingpb.ListingsServiceClient, error)

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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